Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java XML doc processing

 
M Burke
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need an example of how Java reads in an XML file and accesses the nodes. Anyone have one?
 
Paul Clapham
Sheriff
Pie
Posts: 20945
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are several ways. Here's a whole book about the subject:

http://www.cafeconleche.org/books/xmljava/chapters/index.html
 
payal agrawal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the URLs below:

Parsing XML with a simple SAX document handler
http://www.java-tips.org/content/view/517/2/

Reading a DOM tree from XML document
http://www.java-tips.org/content/view/437/2/

Reading a document from XML file with SAX
http://www.java-tips.org/content/view/811/29/

Reading a document from XML file with DOM
http://www.java-tips.org/content/view/812/29/
[ December 09, 2005: Message edited by: payal agrawal ]
 
M Burke
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys, I will look through it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic