This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get the child nodes in java

 
muthu bharathi
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • 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

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic