Programming Tutorials

Comment on Tutorial - XML and Java - Parsing XML using Java Tutorial By Maggie



Comment Added by : meltd0wn

Comment Added at : 2011-09-30 08:36:51

Comment on Tutorial : XML and Java - Parsing XML using Java Tutorial By Maggie
i have a question..i need to parse an xml file with 5 sub-elements:
<one>
<two>
<three>
<four>
<five>String</five>
</four>
</three>
</two>
</one>

I used the nodelist->element technique (similar to DomParserExample.java) but it seems that it only works until the third subelement (<three>). Is this technique applicable to multiple subelements or is there another way to parse this? Thanks.


View Tutorial