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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Retrieve xml content

I have tFileList in my job and in the folder, there are xml files. I want to insert xml's content into database. How to retrieve xml's contents?

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

    In that case, do the same stuff but read the full file using tFileInputRaw and change the datatype later to String using tConvertType. Then you can pass this value (preferably with an id value also in an additional field) to any DB you want.

 

    But please have an eye on the size of the data too as it should not cross the DB datatype upper limit.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi,

 

    Please connect a tFileInputXML to tFileList and read the data in iterative fashion. I would recommend to create the schema of XML in repository metadata section first so that schema management will be easy.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

 

 

Anonymous
Not applicable
Author

No. I wanna copy the content of xml file and save as backup.

Anonymous
Not applicable
Author

Hi,

 

    In that case, do the same stuff but read the full file using tFileInputRaw and change the datatype later to String using tConvertType. Then you can pass this value (preferably with an id value also in an additional field) to any DB you want.

 

    But please have an eye on the size of the data too as it should not cross the DB datatype upper limit.

 

Warm Regards,
Nikhil Thampi

Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂