How to handle idRef in XML ?

Five Stars

How to handle idRef in XML ?


I got an XML file to parse, this one got reference with idRef.
I want to go through them, and insert my XML elements to database, that mean that I have to insert referenced element before creating my key.

Is there a better method ?
Here's an example, near the start of the file :
<AST00 id="1" name="test">
<LEA00 id="1">
<LEA02 idRef-LEA="22"/>

In the middle of file :
<LEA00 id="22">

Thanks a lot

Six Stars

Re: How to handle idRef in XML ?

Connect to tXmlMap and map only the fields you need

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences


Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables


Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now