---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [xml-validation](../index.md) / resolveXmlSchema

# Function: resolveXmlSchema()

> **resolveXmlSchema**(`schema`, `cwd`): `object`

Defined in: [packages/b2c-tooling-sdk/src/xml-validation/schemas.ts:94](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/xml-validation/schemas.ts#L94)

Resolve a `schema` option: a bundled schema ID, or a path to an `.xsd` file.

## Parameters

### schema

`string`

### cwd

`string` = `...`

## Returns

`object`

The schema label (ID or path as given) and the absolute path of the `.xsd` file

### label

> **label**: `string`

### path

> **path**: `string`

## Throws

Error when the value is neither a bundled schema ID nor an existing file
