Hi all, Scenario: I have an xmlDocument that has contents similar to these <?xml version="1.0"?> <document name="DS iibk3.doc"> <header level="1" htext="Aims"> <p>Paragraph 1</p> </header> <header level="1" htext="Learning objectives"> <header level="2" htext="Clinical Immunology"> <ul> <li>List Item 1</li> <li>List Item 2</li> <li>List Item 3</li> </ul> </header> <header level="2" htext="Assessments"> <p>Paragraph 1</p> <p>Paragraph 2</p> <p>Paragraph 3</p> <p>Paragraph 4</p> <p>Paragraph 5</p> <p>Paragraph 6</p> </header> </header> </document> I would like this to be rendered to a tree structure. No problem <dtml-tree test_xml> <dtml-var getTagName> </dtml-tree> Show's a tree of the tagnames, (easy enough to change what is shown for each tag). However I only want the <header>'s to show up in the tree, at the moment all of the items are being rendered in the tree. Any Ideas. Phil phil@philh.org