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

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

# Interface: XmlValidationResult

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

Validation result for one XML file.

## Properties

### errors

> **errors**: [`XmlDiagnostic`](XmlDiagnostic.md)[]

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

Errors and fatal (well-formedness) errors.

***

### filePath

> **filePath**: `string`

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

***

### namespace?

> `optional` **namespace**: `string`

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

Namespace of the root element, when one was found.

***

### reason?

> `optional` **reason**: `string`

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

Why the file was skipped, or why it failed without diagnostics (for example, no schema applies).

***

### rootElement?

> `optional` **rootElement**: `string`

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

Local name of the root element, when one was found.

***

### schema?

> `optional` **schema**: `string`

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

Bundled schema ID (for example `catalog`), or the path of a custom XSD.

***

### status

> **status**: [`XmlValidationStatus`](../type-aliases/XmlValidationStatus.md)

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

***

### truncated?

> `optional` **truncated**: `boolean`

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

True when more diagnostics were reported than are included.

***

### valid

> **valid**: `boolean`

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

True when the file passed validation. Skipped files are not valid.

***

### warnings

> **warnings**: [`XmlDiagnostic`](XmlDiagnostic.md)[]

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