[Biojava-l] SAX, DOM, XPath and Flat files

Andy Yates ayates at ebi.ac.uk
Wed Nov 28 15:37:03 UTC 2007


Hi Dmitry,

StAX still has higher memory consumption than SAX (still not as large as 
DOM) but yes it is quite a good parser system & since we're moving 
towards the later versions of Java may be a good idea to use it as our 
standard parser ... if it supports XPath (can't remember off the top of 
my head) :)

Andy

Dmitry Repchevsky wrote:
> Hello!
> 
> Actually there is also a StAX parser (http://en.wikipedia.org/wiki/StAX) 
> which is faster when  SAX and allows writing.
> In JDK 6 apart of StAX there is JAXB which is a perfect combination to 
> parse a huge files.
> You can go through the XML fie using StAX until the element you are 
> interested in and unmarshall it using JAXB to POJO object.
> 
> Cheers,
> 
> Dmitry
> _______________________________________________
> Biojava-l mailing list  -  Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l



More information about the Biojava-l mailing list