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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hiba1
Contributor
Contributor

Parsing a list of xml files

i have 38 xml file.

i want to parse this files and then insert data into sql server .

any help please ! 

Labels (5)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi Hiba,

 

If you have a same structure XML file in the directory then you can use tFileList and tFileInputXML to load data into the target.

0683p000009M5tk.pngIn the tFileInputXML under file name give name as [((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))]

0683p000009M6OT.pngAnd the output will be 0683p000009M6GF.png

 

If you want to load into any database by giving dynamic schema you load.

View solution in original post

4 Replies
Anonymous
Not applicable

Hi,

 

    If the XML structures are same, you can use tFILEList to read one file at a time. Then parse the XML data using tFILEInputXML and send the output to tMSSQLOutput.

 

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 🙂

hiba1
Contributor
Contributor
Author

Hi ,

i try to produce this job : 

0683p000009M68K.png

So i got this error:

0683p000009M6EI.png

Anonymous
Not applicable

Hi Hiba,

 

If you have a same structure XML file in the directory then you can use tFileList and tFileInputXML to load data into the target.

0683p000009M5tk.pngIn the tFileInputXML under file name give name as [((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))]

0683p000009M6OT.pngAnd the output will be 0683p000009M6GF.png

 

If you want to load into any database by giving dynamic schema you load.

hiba1
Contributor
Contributor
Author

Hi,

Thanks a lot for the reply.

your solution worked