Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Karuetl
Creator II
Creator II

Help on parsing a XML Document

Need help to parse ID and Name from below xml 

 

<?xml version="1.0" encoding="ISO-8859-15"?>
<root>
<row>
<Soap><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<GetFilteredCustomReportResponse xmlns="abcIP">
<GetFilteredCustomReportResult>
<DtoObject>
<ReportData>[{"ID":1,"Name":"Active"},{"ID":3,"Name":"Canceled"}]</ReportData>
<NumberOfPages>1</NumberOfPages>
</DtoObject>
<Response>Successful</Response>
<Successful>true</Successful>
</GetFilteredCustomReportResult>
</GetFilteredCustomReportResponse>
</soap:Body>
</soap:Envelope>
</Soap>
</row>
</root>
Labels (1)
1 Solution

Accepted Solutions
nfz11
Creator III
Creator III

You would first have to parse the XML to get the contents of the ReportData element as a string.  Those contents are JSON.  You would then parse those contents to get the id and name.

 

Look at tExtractXMLFields for the former and tExtractJSONFields for the latter.

View solution in original post

2 Replies
nfz11
Creator III
Creator III

You would first have to parse the XML to get the contents of the ReportData element as a string.  Those contents are JSON.  You would then parse those contents to get the id and name.

 

Look at tExtractXMLFields for the former and tExtractJSONFields for the latter.

Karuetl
Creator II
Creator II
Author

in tFileInputXML 

What should be  the Column and Xpath Query under mapping