• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML

 
Mabobotsane Mogo
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<Telelist>
<tele isValid = "true" 888666</tele>
<tele isValid = "true" 888777</tele>
</Telelist>

//xmldoc XML doc as define above

NodeList nodelist = null;
nodelist= xmldoc.getElementsByTagName("tele");

The problem I can't read the <tele> node
xmldoc.getElementsByTagName("tele"); return nullPointer

What method I use to read XML
 
Yuan Ye
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you forget the ">" for tele?

<Telelist>
<tele isValid = "true"> 888666</tele>
<tele isValid = "true"> 888777</tele>
</Telelist>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic