• Post Reply Bookmark Topic Watch Topic
  • New Topic

XML Node value by Name..  RSS feed

 
Shridhar. Blr.
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Can you tell me how to get Node's value using java API..
Ex:

<?xml version="1.0"?>
<candy>
<product>Mints</product>
<product>Chocolate</product>
<product>Circus Peanuts</product>
<mainprod>
<product>Circus Peanuts</product>
<product>Circus Peanuts</product>
</mainprod>
</candy>

Like, If i want Node value <mainprod>; then it shul return its child node & also any string..
<product>Circus Peanuts</product>
<product>Circus Peanuts</product>


Any help would be highly appreciated..

Thanks in Advance
Shridhar..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!