Skip to main content
Reads cXML documents (the XML format used for purchase orders, invoices, and other procurement messages) and turns them into structured data you can map and transform. cXML files normally begin with a <!DOCTYPE ...> declaration that points at an external definition; this parser removes that declaration before reading the document, so the data loads even when that external definition is not reachable. XML attributes become keys prefixed with @, and nested elements become nested objects.

Fields

Sample data

Input (a cXML purchase order):
<cXML payloadID="123" timestamp="2024-01-01T10:00:00">
  <Header>
    <From>
      <Credential domain="NetworkID"><Identity>SupplierA</Identity></Credential>
    </From>
  </Header>
  <Request>
    <OrderRequest>
      <OrderRequestHeader orderID="PO-1024" type="new"/>
    </OrderRequest>
  </Request>
</cXML>
Output:
{
    "@payloadID": 123,
    "@timestamp": "2024-01-01T10:00:00",
    "Header": {
        "From": {
            "Credential": {
                "@domain": "NetworkID",
                "Identity": "SupplierA"
            }
        }
    },
    "Request": {
        "OrderRequest": {
            "OrderRequestHeader": {
                "@orderID": "PO-1024",
                "@type": "new",
                "#": ""
            }
        }
    }
}