Wednesday 27 April 2011

Java: Handling Large XML Documents with VTD-XML

Here's a working example of how VTD-XML can be used to parse a large (~330Mb) XML file. In this example, I'm using AutoPilotHuge to match all page elements in the file. For each element encountered (there are 10s of thousands), the element data will be written to a file using the element's index within the document as a filename:

No comments: