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

Sample data

Input:
Output:
Because type casting is on, payloadID="123" comes back as the number 123. With the option off it stays the text "123", and the rest of the output is unchanged.