Contact Free trial Login

XML Module

Release Notes: XML Module Release Notes

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 simply add it to your Mule app through the Studio or Flow Designer UI, or you can add the following dependency in your pom.xml file:

    <version>1.1.0</version> <!-- or newer -->

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.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.