Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Oracle DB xml records: how can I load in QlikView!

Anyone had any experience on how to load this kind of data. It is an Oracla data type. Basically they store data in a field as an xml tagged text.

For example take Customer table. The columns are:

IDREC; XMLRECORD
1; <CustName>Cusomter1<\CustName><CustAddress>Addres1<\CustAddress> ... etc

So actually all fields for the Customer are included in the xml record.

Any idea?

Regards

John

1 Solution

Accepted Solutions
deepakk
Partner - Specialist III
Partner - Specialist III

HI,

I have used macro to solve this kind of issue. I know that this isn't the stright forward solution. But this works fine for my scenario.

I have attach the application .You can modify the macro as per your requirement.

Deepak

View solution in original post

16 Replies
mike_garcia
Luminary Alumni
Luminary Alumni

Hi,

Have you tried to load the xml as Table File (the same way you would load an Excel file, or a QVD)?

I have loaded XML tables that way successfully.

Mike.

Miguel García
Qlik Expert, Author and Trainer
Not applicable
Author

hi,

I know that I can load xml files as tables. The problem is that I do not have xml files but a database (oracle) and the records in that field are stored as xml data.

Regards,

John

Not applicable
Author

Hello John,

Did you have any luck with this? I'm also trying to load xml froma database record.

Scott

Not applicable
Author

No unfortunatelly no. Seems like it can't be done by default. Just with work araounds: like loading the records as text and then pasing the text...

Regards,

John

Not applicable
Author

I have the same problem, any luck with it?

Not applicable
Author

Does any one have the solution for the problem ? if you have please share the same. Thanks

deepakk
Partner - Specialist III
Partner - Specialist III

HI,

I have used macro to solve this kind of issue. I know that this isn't the stright forward solution. But this works fine for my scenario.

I have attach the application .You can modify the macro as per your requirement.

Deepak

Not applicable
Author

Hi Deepak

Thanks for your reply, does your solution read from Oracle XML database ? I think it seems different what I am looking. Actually I have to connect Oracle XML database dynamically .

Best Regards

Zubair Khan

deepakk
Partner - Specialist III
Partner - Specialist III

Hi,

No I am getting from SQL Server. I don't think the database matter. what matter is how the data is lying in rows or columns or some other weird formats.

Correct me if I am wrong

Deepak