---
schema_version: "1"
id: 49920a9e77871a3e514885268b7ebdf90be062897b452e51eda66101a3d04d84
title: XML Module
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/xml-module/1.2/index.md
canonical_url: https://docs.mulesoft.com/xml-module/1.2/
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 09e7e290085c3b10604bee7ca419f204d3b4c275dfd437a45e44ca1b4b79768d
description: MuleSoft Documentation Site
release: "1.2"
latest: false
---
---
product: XML Module
version: 1.2
---

# XML Module

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

XML Module v1.2

The XML Module can process and extract data from an XML document. Although DataWeave is recommended
for most XML-related use cases, the XML module should be used for cases that involve the use of XML
standards such as XSLT, XPath and XQuery, or XSD.

To use the XML module, you can add it to your Mule app through the Studio UI, or you can add the
following dependency in your `pom.xml` file:

```xml
<dependency>
    <groupId>org.mule.modules</groupId>
    <artifactId>mule-xml-module</artifactId>
    <version>x.x.x</version> <!-- or newer -->
    <classifier>mule-plugin</classifier>
</dependency>
```

Mule runtime engine (Mule) converts RELEASE to the latest version.

Release Notes: [XML Module Release Notes](https://docs.mulesoft.com/release-notes/mule-runtime/module-xml)  
Exchange: [XML Module](https://www.mulesoft.com/exchange/org.mule.modules/mule-xml-module/)

## Validate Against a Schema

When using the XML Module to validate against a schema that has references to other local schema
files, validation can fail because the access was restricted by the `expandEntities` as it was using
the default value of NEVER. The error message is: The supplied schemas were not valid.
schema\_reference: Failed to read schema document `NMVS_Composite_Types.xsd`, because `file` access
is not allowed due to restriction set by the accessExternalSchema property.

You can eliminate this issue by adding `expandEntities="INTERNAL"` to the `xml-module:config`
element.

## See Also

- [Using XPath with the XML Module](https://docs.mulesoft.com/xml-module/1.2/xml-xpath)

- [XSLT Transformations with the XML Module](https://docs.mulesoft.com/xml-module/1.2/xml-xslt)

- [Validating Documents against an XSD Schema with the XML Module](https://docs.mulesoft.com/xml-module/1.2/xml-schema-validation)

- [Using XQuery with the XML Module](https://docs.mulesoft.com/xml-module/1.2/xml-xquery)

- [XML Module Documentation Reference](https://docs.mulesoft.com/xml-module/1.2/xml-reference)

- [Salesforce Help](https://help.salesforce.com)
