From: Joe W. <jo...@gm...> - 2011-04-27 12:20:03
|
Hi all, On the recent topic of "bulk importing", I thought some people here might be interested in this post by Alex Bleasdale about parsing/splitting a huge XML file - presumably for import into an XML database: Handling Large XML Documents with VTD-XML http://blog.msbbc.co.uk/2011/04/java-handling-large-xml-documents-with.html 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... Cheers, Joe |