Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get specific root, element and node?

 
Wayne Wong Qi Yuan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i been research quite a long time...
i cant figure out how to show this part that i want


please kindly help
 
D. Ogranos
Ranch Hand
Posts: 214
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For parsing the XML, check out the API documentation for

org.w3c.dom.Document
javax.xml.parsers.DocumentBuilder
javax.xml.parsers.DocumentBuilderFactory

Then use XPath to find specific nodes in the document. See

javax.xml.xpath.XPathExpression
javax.xml.xpath.XPath
javax.xml.xpath.XPathFactory

If you have problems with any part, post again
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harold's free on-line book is loaded with examples. A bit old but still perfectly usable.

Bill
 
Wayne Wong Qi Yuan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank to Second Post...
is help a lot....
i can get the node that i want in xml
using xpath can get any node from different lvl of root....

share what i done
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic