thanks I will try that, when I havesome time

On 14 Aralık, 10:20, aliman <[email protected]> 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 NodeList to see if it is an
> instanceof Element [2], then counting those.
>
> Hth,
>
> Alistair
>
> [1]http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
> [2]http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
>
> On Dec 9, 1:31 pm,oliverde8<[email protected]> wrote:
>
>
>
> > 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
> > tabs.
>
> > Once I read the <tabs> in the XML I start having troubles. when I use
> > getChildNodes(line70) I don't know what I get. I counted the number of
> > nodes it says I have 5 nodes(line72) but I don't have 5 child inside
> > the tab even if I look deeper in the sub categories.
>
> > The java codehttp://91.121.149.10/Personal/oliverde8/test/Gen_tr_index.java
>
> > I could do something similar in PHP, it is so much easier to read an
> > XML. But I wanted to use Google Web Toolkit.
>
> > Thanks a lot,

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to