• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML Node value by Name..

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic