Hi All,
After a GET Request is sent, the response is in XML format. Which I am able to convert it into JSON format using :
let jResponse =xml2Json(responseBody);
However I want to only capture all the tagnames present in the xml to ensure that all intended xml tags are correctly shown. That is traverse through all the xml tags and capture the tagname in an array/csv file.
I am not sure how to proceed… your assistance would be of great help.
Sample XML Response:
<p:HighLevelSummaryDetails>
<p:MRN>1234566</p:MRN>
<p:LRN>ABD-38U-9JR</p:LRN>
<p:PartID>2690U01</p:DUCRandPartID>
<p:VersionID>1</p:VersionID>
<p:GoodsLocationCode>RMGRMGRMGGVM</p:GoodsLocationCode>
<p:CreatedDateTime>
<p:DateTimeString formatCode=“304”>20231030160405Z</p:DateTimeString>
</p:CreatedDateTime>
<p:AcceptanceDateTime>
<p:DateTimeString formatCode=“304”>20231030160404Z</p:DateTimeString>
</p:AcceptanceDateTime>
<p:P2PDateTime>
<p:DateTimeString formatCode=“304”>20231030160407Z</p:DateTimeString>
</p:P2PDateTime>
<p:FinalisedDateTime>
<p:DateTimeString formatCode=“304”>20231030163908Z</p:DateTimeString>
</p:FinalisedDateTime>
</p:HighLevelSummaryDetails>
<p:GeneratedDetails>
<p:ROE>89</p:ROE>
<p:Reference>3456789012-2690U02</p:Reference>
<p:StatusOfEntry-ICS>22</p:StatusOfEntry-ICS>