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

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

# Function: findBundledXmlSchema()

> **findBundledXmlSchema**(`namespace`, `rootElement?`): [`BundledXmlSchema`](../interfaces/BundledXmlSchema.md) \| `undefined`

Defined in: [packages/b2c-tooling-sdk/src/xml-validation/schemas.ts:83](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/36eea0d308f1312d1a446ec8813ed30b0bdba62c/packages/b2c-tooling-sdk/src/xml-validation/schemas.ts#L83)

Find the bundled schema for a document. Some namespaces are shared by several schemas (for example
`customer` and `customerlist2`), so the root element name picks between them.

## Parameters

### namespace

`string`

### rootElement?

`string`

## Returns

[`BundledXmlSchema`](../interfaces/BundledXmlSchema.md) \| `undefined`
