> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# XML connector

- Connector: `appmixer.utils.xml`
- Version: 1.0.8
- Components: 4 (0 triggers, 4 actions)

XML Utilities.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.utils.xml/1.0.8>
- Documentation: <https://docs.appmixer.com/connector-configuration/utils/xml>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/utils/xml>
- Download package: <https://connectors.appmixer.com/connector/appmixer.utils.xml/1.0.8/download>

## Authentication

**Type:** Other

## Actions (4)

- [Json To Xml](https://connectors.appmixer.com/connector/appmixer.utils.xml/1.0.8/component/appmixer.utils.xml.JsonToXml.md) (`appmixer.utils.xml.JsonToXml`): Convert JSON to XML.
- [Validate Xml](https://connectors.appmixer.com/connector/appmixer.utils.xml/1.0.8/component/appmixer.utils.xml.ValidateXml.md) (`appmixer.utils.xml.ValidateXml`): Validate XML.
- [X Path](https://connectors.appmixer.com/connector/appmixer.utils.xml/1.0.8/component/appmixer.utils.xml.XPath.md) (`appmixer.utils.xml.XPath`): Extract data from XML using an XPath expression.
- [Xml To Json](https://connectors.appmixer.com/connector/appmixer.utils.xml/1.0.8/component/appmixer.utils.xml.XmlToJson.md) (`appmixer.utils.xml.XmlToJson`): Convert XML to JSON.

## Changelog

### 1.0.8

- Security: upgraded fast-xml-parser 5.7.3 to 5.12.0 (quadratic CPU on unterminated stop-node tags, GHSA-474x-hrwr-fgx4).
- JsonToXml: an unset or null JSON input still returns an empty XML (fast-xml-parser 5.12.0 throws on it).

### 1.0.7

- Security: upgraded fast-xml-parser 4.5.7 to 5.7.3 (XMLBuilder comment and CDATA injection, GHSA-gh4j-gqv2-49f6).
- Fix: XmlToJson turned every tag into an array when Always Array was left empty, and skipped number parsing when Skip Parse Number RegExp was left empty.
- E2E test flows for JsonToXml, ValidateXml, XmlToJson and XPath.

### 1.0.6

- Security: replaced the abandoned xmldom 0.6.0 with its maintained successor @xmldom/xmldom 0.8.15 (XML injection, multiple-root and quadratic DoS advisories).
- Security: upgraded fast-xml-parser 4.2.5 to 4.5.7 (entity expansion and parsing DoS advisories).
- Behaviour changes: in XPath, malformed XML with more than one root element keeps only the first root, truncated XML can lose inner elements, and '>' in text is serialised as '>'. In XmlToJson, entities are decoded when processEntities is unset, and JsonToXml escapes comment and CDATA delimiters.

### 1.0.5

- Output examples for the XML components.

### 1.0.4

- Fix: JsonToXml now handles format:true with missing or numeric indentBy, preventing crash when indentBy is undefined.

### 1.0.3

- jsonToXml: fix the input json as a string.

### 1.0.2

- Initial version.
