cancel
Showing results for 
Search instead for 
Did you mean: 

How to map a deep xml structure to flat structure

Former Member
0 Kudos

Hi, I'm trying to map a deep xml structure to a flat file structure. See this:

<SalesPoint>

<header>

<idTx></idTx>

<opCode></opCode>

</header>

<body>

<DataSet>

<codOperacion></codOperacion>

<codCanalDeVenta></codCanalDeVenta>

<cuitDeposito>

<docMinorista>

<fechaOperacion>

<codCC>

<Details>

<Dato>

<nroSerieEquipo></nroSerieEquipo>

<codNMU></codNMU>

<codOrigenEquipo></codOrigenEquipo>

<codConcepto></codConcepto>

<codSegmento></codSegmento>

<motivoSiniestro></motivoSiniestro>

</Dato>

</Details>

</DataSet>

</body>

</SalesPoint>

to:

<SalesPoint>

<idTx></idTx>

<opCode></opCode>

<codOperacion></codOperacion>

<codCanalDeVenta></codCanalDeVenta>

<cuitDeposito></cuitDeposito>

<docMinorista></docMinorista>

<fechaOperacion></fechaOperacion>

<codCC></codCC>

<nroSerieEquipo></nroSerieEquipo>

<codNMU></codNMU>

<codOrigenEquipo></codOrigenEquipo>

<codConcepto></codConcepto>

<codSegmento></codSegmento>

<motivoSiniestro></motivoSiniestro>

</SalesPoint>

Thanks in advance!!!!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I have used removeContext Function.

Best Regards!

VijayKonam
Active Contributor
0 Kudos

I do not think this is a complex XML structure. All that you need to take care is about the contexts. How ever it is not possible to give u the complete mapping here. If you have tried mapping already and facing some issues.. please put it here.. so that some one can help you.

VJ