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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Spark not able to parse XML - with root tag having attributes

I have created a Talend Bigdata Batch Job and added a component "tFileInputXML".


The xml is of the following format: <root version="1.0"><child name="xyz"></child></root>


The tFileInputXML component has following attributes :

Element To Extract = "root" 

Loop xPath Query="/root/child"

Mapping Column=name

XPath Query="@name"

 

With the above configuration,the XML is not getting parsed. But if i remove the attribute(version) from the "root" tag then it is getting parsed.

Please suggest if i am missing any configuration.
Talend version : 6.3.1

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Hi
The configuration seems OK, not sure if it is a limitation, I will check with our developers and come back to you asap.

Regards
Shong
Anonymous
Not applicable
Author

Hi Shong

Any update on the above issue?

Thanks
Anonymous
Not applicable
Author

can you please mention the Xsd file for this particular xml file ?