Forum Moderators: open
Example XML feed:
<emea_created_ticket customer='abc'>
<ticket_id>TT00887872</ticket_id>
...
<xml_transaction_type>ticket</xml_transaction_type>
</emea_created_ticket>
According to the value of xml_transaction_type, the root node after transfomation need to be different, eg.
if xml_transaction_type='order', the transformed xml will be like:
<nt_created_order customer='abc'>
...
</nt_created_order>
If xml_transaction_type='ticket' or anything else, the transformed xml will be like:
<nt_created_ticket customer='abc'>
...
</nt_created_ticket>
I am able to change the tag names and content in ... area, but can't change the root tag name. If you have answer, please let me know.
Thanks,
Wenlan
suggested resources:
XSLT Choose element [w3schools.com]
XPATH axes [w3schools.com]