Re: Parsing Complicated XML

2009-12-14 Thread aliman
Hi there, Note that getChildNodes returns a NodeList, which is a list of Nodes [1]. A Node could be an element, an attribute, a comment, a ... You could try testing each Node in the NodeList to see if it is an instanceof Element [2], then counting those. Hth, Alistair [1]

Re: Parsing Complicated XML

2009-12-14 Thread oliverde8
thanks I will try that, when I havesome time On 14 Aralık, 10:20, aliman aliman...@googlemail.com wrote: Hi there, Note that getChildNodes returns a NodeList, which is a list of Nodes [1]. A Node could be an element, an attribute, a comment, a ... You could try testing each Node in the

Parsing Complicated XML

2009-12-10 Thread oliverde8
Hi, I am trying to generate a a tree using a XML file. I was able to read and Parse the XML file. But I have some problems with the parser. The xml I try to parse is: http://91.121.149.10/Personal/oliverde8/test/index.xml At the end I want to have a tree in a DecoratedTabPanel, with multiple