06-29-2020 04:51 AM
Team,
I am looking for a solution in snaplogic to convert the xml attribute to xml element.
My xml looks like this,
Bloodroot ColumbineThanks,
Dhivya Aroma
Solved! Go to Solution.
06-29-2020 07:31 AM
Attached is an example pipeline. Note that you will need to extend the XSD defined for the XML Formatter, but this should solve this request.
Example_XML_attributes_to_elements_2020_06_29.slp (7.8 KB)
Note that you will need to rename the following attachments to remove the “.txt” extension - this was done just so I could upload.
catalog_with_attributes.xsd.txt (762 Bytes) catalog_with_attributes.xml.txt (201 Bytes)
06-29-2020 07:31 AM
Attached is an example pipeline. Note that you will need to extend the XSD defined for the XML Formatter, but this should solve this request.
Example_XML_attributes_to_elements_2020_06_29.slp (7.8 KB)
Note that you will need to rename the following attachments to remove the “.txt” extension - this was done just so I could upload.
catalog_with_attributes.xsd.txt (762 Bytes) catalog_with_attributes.xml.txt (201 Bytes)
06-30-2020 04:16 AM
Hi KoryKnick,
Thanks for the solution. This worked. I understand that xsd is mandatory for the transformation.
Regards,
Dhivya.