Processing large xml files

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.

+5
source share
5 answers

try http://code.google.com/p/jlibs/wiki/XMLDog

it executes xpaths using sax without creating the representation of XML documents in memory.

+2
source

SAXParser is very effective when working with large files

+2

? , DOM, XML DOM. , SAX, XML- .

StAX .

+2

vtd VTD-xml? XML, ... ?

0

XPath , .

, java- XPath, .NET XPath , . , .
, XPath, , , , , .

, , , , , , .
, , , . , .

0

All Articles