Skip to Content
0
Feb 16, 2011 at 09:03 AM

message mapping. How to read nested xml?

53 Views

i have a problem and i d'ont konw how to solve.

In message mapping, I have :

1. A message type origin with next structure:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:CRSC_MT_Fichero xmlns:ns0="http://cccc/wwww">

<Record>

<Row>row1</Row>

</Record>

<Record>

<Row>row2</Row>

</Record>

</ns0:CRSC_MT_Fichero>

2. A message type target with next structure:

<?xml version="1.0" encoding="UTF-8"?>

<ns1:EnviarFicheroBandeja xmlns:ns1="http:/xxxxx/">

<ns1:cifOrigen>Origen</ns1:cifOrigen>

<ns1:fichero>row1</ns1:fichero>

</ns1:EnviarFicheroBandeja>

we want it is that in field fichero ( xsd:base64Binary) has the content of every Rows together.

So in the below example we would like as result:

<?xml version="1.0" encoding="UTF-8"?>

<ns1:EnviarFicheroBandeja xmlns:ns1="http:/xxxxx/">

<ns1:cifOrigen>Origen</ns1:cifOrigen>

<ns1:fichero>row1

row2

</ns1:fichero>

</ns1:EnviarFicheroBandeja>

thanks