I have a large xml file that contains many subelements. I want to be able to run some xpath requests. I tried using vtd-xml in java, but sometimes I get an outofmemory error, because the xml is so big as to fit in memory. Is there an alternative way to handle such large xml.
try http://code.google.com/p/jlibs/wiki/XMLDog
it executes xpaths using sax without creating the representation of XML documents in memory.
SAXParser is very effective when working with large files
? , DOM, XML DOM. , SAX, XML- .
StAX .
vtd VTD-xml? XML, ... ?
XPath , .
, java- XPath, .NET XPath , . , ., XPath, , , , , .
, , , , , , ., , , . , .