Skip to main content
Parses a cXML string into a data object. cXML is the XML-based format used for procurement documents such as purchase orders, order confirmations, ship notices, and invoices. Use this when a cXML message arrives as a single piece of text and you want to turn it into structured data, so values that were buried in XML tags and attributes become regular fields you can read and map. Element attributes appear as fields prefixed with @, and the text inside an element appears under a # field. The document type line at the top of the message (the <!DOCTYPE ...> declaration) and comments are removed automatically, so you do not need to strip them yourself.

Fields

This mapper has no settings to configure. Point it at the cXML text you want to parse and it does the rest.

Sample data

FieldValue
(no settings)
Input:
{
    "payload": "<?xml version=\"1.0\" encoding=\"UTF-8\"?><cXML payloadID=\"123\" timestamp=\"2026-06-19T10:00:00+00:00\"><Request><OrderRequest><OrderRequestHeader orderID=\"PO-1001\" type=\"new\"/></OrderRequest></Request></cXML>"
}
Output:
{
    "payload": {
        "@payloadID": 123,
        "@timestamp": "2026-06-19T10:00:00+00:00",
        "Request": {
            "OrderRequest": {
                "OrderRequestHeader": {
                    "@orderID": "PO-1001",
                    "@type": "new",
                    "#": ""
                }
            }
        }
    }
}