JDE ORCH: XML parser in Groovy script is throwing error when multiple namespaces are present in tags
Hi Team,
I am trying to parse XML file via Groovy script in JDE orchestration. Script works fine for normal XML tags and parse the tags successfully. I also have few namespaces prefixed tags. Eg: <sh:standard>
Inorder to handle the namespaces scenario (<sh:standard>), we used single quotes in Groovy but still throws below error.
Sample XML:
<order xmlns:sh="ard">
<sh:standard>GS1</sh:standard>
</order>
Attached the code snippet used to parse the above sample xml.
Please throw some light inorder to correct the code snippet when multiple namespaces are encountered.
Thanks in Advance.
Regards,
Natarajan Sivaswamy.