I'm trying to extract some values from an xml file using a TFileInputXML component.
The xml file can contain several documents in it (from 1 to 1000 for example)
The Xpath loop query is the following one : "/Documents/Document"
Retrieving fields for each document is ok. But now I would like to retrieve position of each document in my xml file and store it in a field named cpt.
I've tried with the xpath function position() but it's returning an empty value.
In my case, the mapping is the following one :
Column = cpt
XPath query = "position()"
So can anyone can help me about the xpath query syntax ?
Thank you very much !
Could you please elaborate your case with an example with input and expected output values?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Find out about Talend's 2019 Summer release
Talend continues to revolutionize how businesses leverage speed and manage scale
Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend