aspose file tools
The moose likes Beginning Java and the fly likes Parse XML File Using Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 75
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Parse XML File Using Java
 
Similar Threads
validation
compress a xml file
Annotation in spring
displaying image in any browser using xsl
representing as XML