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