Hi,
I have some problems with XML Fields and the Index Item function to get values from it.
This is the example schema:
<Incidencias xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Incidencia>
<Tipo>1</Tipo>
<Comentario>Comentario1</Comentario>
<Cerrada>true</Cerrada>
<AsignacionDirecta>true</AsignacionDirecta>
</Incidencia>
<Incidencia>
<Tipo>1</Tipo>
<Comentario>Comentario2</Comentario>
<Cerrada>false</Cerrada>
<AsignacionDirecta>true</AsignacionDirecta>
</Incidencia>
</Incidencias>
If one of this repeating elements "Incidencia" arrives whithout any tag when I use the index item function I get the value of the next element. As an example with the next XML, for the "Cerrada" value, in the first iteration of a foreach I get "False" value and in the second iteration I get Empty value. Is there any way to solve this?
<Incidencias xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Incidencia>
<Tipo>1</Tipo>
<Comentario>Comentario1</Comentario>
<AsignacionDirecta>true</AsignacionDirecta>
</Incidencia>
<Incidencia>
<Tipo>1</Tipo>
<Comentario>Comentario2</Comentario>
<Cerrada>false</Cerrada>
<AsignacionDirecta>true</AsignacionDirecta>
</Incidencia>
</Incidencias>