[XML-SIG] the faster way to get a dom.

chris davis chris@rpgarchive.com
Mon, 16 Oct 2000 09:58:29 -0500


I wondering what is the fastest (as in speed of processing) to get a
DOM.  Below is the way OI;ve been doing, but lately Ilve had to deal
with very lrage XML documents and I wondeing if ther is a way to imporev
speed.

from xml.dom.ext.reader import Sax

def parseXml(s,ownerDocument=None):
    "parse and return doc"
    doc = Sax.FromXml(s,ownerDocument)
    ext.StripXml(doc)
    return doc