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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Knowme
Contributor
Contributor

Large(1GB) XML file with 250+ columns

Hi,

 

I have a large XML file with 250+ columns.I need to load this into a sql table but below are the challenges i am facing.

 

1)I am not able to get the columns/metadata as the file is too large.

2)I dont know the columns and using doc as my column with xpath query "."

3)I am not able to split this file using tAdvancedOutputXMl since its throwing java heap space error.

4) i cannot convert it into csv since i dont have column names

 

How can i load this XML to my table.

Labels (5)
2 Replies
Anonymous
Not applicable

Hi,

 

You can build the schema automaticaly with a tXMLMap component.

 

Read your xml file with a tfileinputFullRow or tfileInputRegex or anything, just make sure all the XML is loaded in a single column of type document, then bind it to tXMLMap. You will be able to right click and import a xml file and Talend will generate a tree for you.

 

Knowme
Contributor
Contributor
Author

I did create a column doc and connected to tXMLMap.But when i right click to import the tree its taking forever since its  huge file and ultimately gets locked.