I have an xml port with a field that repeats three times, and i want to pass these fields to a table, but i can't pass the three fields to the table because the first field that I want to pass to a table is overwrited by the second, and second field in my table stays empty. After that, the first field of my table is overwriten again by the third field of the xml port, doing the same and leaving empty the second and the third fields of my table.
thanks! :P
0
Comments
There was a very similar type question posted already that I responded too...see below.
See my other post here: http://www.mibuso.com/forum/viewtopic.php?f=23&t=46858
Epimatic Corp.
http://www.epimatic.com
in my xml I have these fields
<LISTA_TELEFONOS>
- <TELEFONOS>
<TIPO_TELEFONO> xxxxxx </TIPO_TELEFONO>
<TELEFONO> xxxxxxxxx </TELEFONO>
<COMENTARIO> xxxxxxxxx </COMENTARIO>
</TELEFONOS>
- <TELEFONOS>
<TIPO_TELEFONO> xxxxxxxxx </TIPO_TELEFONO>
<TELEFONO> xxxxxxxxx </TELEFONO>
<COMENTARIO />
</TELEFONOS>
- <TELEFONOS>
<TIPO_TELEFONO> xxxxxxxxx </TIPO_TELEFONO>
<TELEFONO> xxxxxxxxx </TELEFONO>
<COMENTARIO> xxxxxxxxx </COMENTARIO>
</TELEFONOS>
</LISTA_TELEFONOS>
I want to pass this data to a table, but I overwrite the same name as the fields, leaving me the last 2 empty.
do not know if it will be easier to understand
http://www.mibuso.com/forum/viewtopic.php?f=23&t=46858&p=229426#p229426
Basically I would use the OnAfterAssignVariable trigger of the TELEPHONOS element - as it appears thats the element that repeats several times in your XML.
Epimatic Corp.
http://www.epimatic.com