Foren

saxReader from freemarker template

thumbnail
Borja Blázquez, geändert vor 8 Jahren.

saxReader from freemarker template

Junior Member Beiträge: 30 Beitrittsdatum: 07.10.13 Neueste Beiträge
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:
	<#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.