06-25-2020 12:09 PM
06-26-2020 09:08 AM
06-29-2020 06:20 AM
Does Snaplogic use StAXON conventions? I still can’t figure out how to use the Mapper to include both an attribute and value on a single XML node
06-29-2020 07:50 AM
I’ve put together a sample pipeline. In it I use a Mapper Snap to create the needed input for the XML Formatter Snap.
XML_with_Mapper_2020_06_29.slp (6.8 KB)
Hope it helps to clarify, or muddify 🙂 the matter further.
BR,
Dimitri
06-29-2020 07:43 AM
I think what you’re looking for is something like this in your Mapper:
Defining the root [‘$’] attribute is the element value… using the at-sign (@) as the field prefix tells the XML Formatter that it is an attribute of the element.
See the XML Formatter documentation for more details:
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/1439279/XML+Formatter