Publisher review:Breaking large XML documents into chunks script contains a function that breaks the XML down via tag name. One of the few problems with using Python to process XML is the speed -- if the XML becomes somewhat large (>1Mb), it slows down exponentially as the size of the XML increases. One way to increase the processing speed is to break the XML down via tag name. This is especially handy if you are only interested in one part of the XML, or between certain elements throughout the XML. This script contains a function that handle this problem. It uses the Sax reader from PyXML.The In parameters are the XML as a string, the tag name that you want to build the DOM around, and an optional postition to start at within the XML. It returns a DOM tree and the character position that it stopped at.
Breaking large XML documents into chunks is a Python script for XML Tools scripts design by Mike Hostetler.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Breaking large XML documents into chunks script contains a function that breaks the XML down via tag name.
Operating system:Windows / Linux / Mac OS / BSD / Solaris