[Zope] How do I control iteration over XML elements?
Jean Jordaan
Jean@mosaicsoftware.com
Mon, 31 Jul 2000 18:12:43 +0200
Hi all
If I have (in an XML Document):
<teams>
<team>
<name>Name of team</name>
<desc>White papers, brochures, case studies.</desc>
<member class="leader">Tracey</member>
<member>Eduan</member>
<member>Jacqui</member>
</team>
</teams>
Then:
<dtml-in "teams[0].getElementsByTagName('team')">
<dtml-var "text_content('member')"> <br>
</dtml-in>
gives me this:
TraceyEduanJacqui <br>
I'd like to format the output, putting <br>'s between
all the names, for example. How do I do that?
Cheers,
--
jean