Fórum
saxReader from freemarker template
Borja Blázquez, modificado 8 Anos atrás.
saxReader from freemarker template
Junior Member Postagens: 30 Data de Entrada: 07/10/13 Postagens Recentes
Hi,
i'm trying to read a web content structure from freemarker using saxReader. The structure has some elements that can be repeteable.
the code of freemarker is:
I tried with
The filed "Adjuntos" is the repeteable element. I am not able to get the list of "Adjuntos" till always is returning the first ocurrence of the xml.
I am able to get all other fields that are single elements.
the XML:
Thank you very much in advanced.
Greets.
i'm trying to read a web content structure from freemarker using saxReader. The structure has some elements that can be repeteable.
the code of freemarker is:
<#assign adjuntos = docXml.valueOf("//dynamic-element[@name='Adjuntos']") />
I tried with
<#assign adjuntos = docXml.valueOf("//dynamic-element[@name='Adjuntos']/dynamic-content/") />
and it does not work too.The filed "Adjuntos" is the repeteable element. I am not able to get the list of "Adjuntos" till always is returning the first ocurrence of the xml.
I am able to get all other fields that are single elements.
the XML:
<dynamic-element name="Adjuntos" type="document_library" index-type="keyword" index="0">
<dynamic-content language-id="en_US">/documents/20182/0/Adjunto+1/</dynamic-content>
</dynamic-element>
<dynamic-element name="Adjuntos" type="document_library" index-type="keyword" index="1">
<dynamic-content language-id="en_US">/documents/20182/0/Adjunto+2/</dynamic-content>
</dynamic-element>
Thank you very much in advanced.
Greets.