• 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

how to get the child nodes in java

 
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

i have the xml like the following:



from the above xml i need the values such as block1,block2, block3 itself. how can i get it by using java.
it is very urgent... im awaiting for your response.

--
regards,
M.Bharathi
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How far have you gotten with this problem?

1. can you parse the source XML into a DOM?
2. have you familiarized yourself with the Java methods for manipulating a DOM? (hint - see the JavaDocs for the org.w3c.dom.Node class for an overview of what you can do with the various node types)

See the free online book by Harold for tutorials and examples close to your problem.

Bill

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic