Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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.