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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Parse XML in database

Hi there,

I'm currently faced with a situation where I have XML data stored as a string in a database.  An example of what this data looks like:

<?xml version="1.0" encoding="utf-16"?>  <Quote xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">     <IDType>ID_SA</IDType>      <IDNumber />      <GenderCde>Male</GenderCde>      <MaritalCde>Married</MaritalCde>      <DateOfBirth>1989-02-02T00:00:00</DateOfBirth>        <Suburb>GEORGE</Suburb>  </Quote>

Is there any straightforward way to parse this in the load script such that, for the above, I'd end up with:

IDTypeGenderCdeMaritalCdeDateOfBirthSuburb
ID_SAMaleMarried1989-02-02T00:00:00George

Any help on this would be greatly appreciated.

Cheers

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

That seems to be very tricky. Perhaps these discussions can help you further:


talk is cheap, supply exceeds demand