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  -  [email protected]
> http://lists.open-bio.org/mailman/listinfo/biojava-l
_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l

Reply via email to