<root>
        <menu type="F">Folder 1
                <menu type="S">Folder 1 Shortcut 1</menu>
                <menu type="S">Folder 1 Shortcut 2</menu>
                <menu type="F">Folder 1 Folder 1
                        <menu type="S">Shortcut1</menu>
                        <menu type="F">Shortcut2</menu>
                </menu>
                <menu type="S">Folder 1 Shortcut 3</menu>
        </menu>
        <menu type="F">Folder 2
                <menu type="F">Folder 2 Folder 1</menu>
                <menu type="F">Folder 2 Folder 2</menu>
                <menu type="S">Folder 2 Shortcut 1</menu>
        </menu>
        <menu type="F">Folder 3
                <menu type="S">Folder 3 Shortcut 1</menu>
                <menu type="F">Folder 3 Shortcut 2</menu>
        </menu>
        <menu type="S">Shortcut 1</menu>
</root>

Hi all,
I have a problem parsing this xml. First, I tried to get node list
with getChildNodes(). It returns 4 nodes, that's what I want. Then, I
tried to get next node list with if a node has child
by hasChildNodes() and if it's type is "F". In this stage, I can't use
getChildNodes(), but I tried to get node list with
getElementByTagName("menu"), it return all elements under that node.
I wonder why I can't get node list with getChildNodes(). I want only
child element of
eg. Folder1(Folder 1 Shortcut 1, Folder 1 Shortcut 2, Folder 1 Folder
1, Folder 1 Shortcut 3)
not including child of Folder1 Folder1(Shortcut1, Shortcut2). Any
help! Thanks in advance.


--~--~---------~--~----~------------~-------~--~----~
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