It's not a secret anymore!*
The moose likes Beginning Java and the fly likes Parse XML File Using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Parse XML File Using Java" Watch "Parse XML File Using Java" New topic
Author

Parse XML File Using Java

Mahendra Chowdary
Greenhorn

Joined: Aug 26, 2010
Posts: 25
Hi ,

May i know how we can extract data from xml file into a java collection .

Thanks
Mahendra
Soumyajit Hazra
Ranch Hand

Joined: Jun 26, 2007
Posts: 136
You can use XML parsing by Java link as a reference.


Java Programmer | SCJP 1.5 | SCWCD 1.4
Mahendra Chowdary
Greenhorn

Joined: Aug 26, 2010
Posts: 25
Thanks for the response
Alex Hurtt
Ranch Hand

Joined: Oct 26, 2010
Posts: 98
That is a good article for starters but it doesn't seem to touch on the newer Streaming API for XML Parsing which is part of the Java 6 API in the javax.xml.stream.* packages and offers another alternative to SAX and DOM. It offers the speed of SAX parsing with the manipulation capabilities of DOM but without DOM's huge memory footprint. Just Google for 'Java streaming xml parsing api' or something and I'm sure you can find multiple tutorials for it.
Nate Lockwood
Ranch Hand

Joined: Feb 22, 2010
Posts: 83
This is an old thread but now to access the link above it is required to enter a drawing which at the least requires submission of a valid email address. I didn't do that.
 
wood burning stoves
 
subject: Parse XML File Using Java
 
Similar Threads
compress a xml file
representing as XML
validation
displaying image in any browser using xsl
Annotation in spring