This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • 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