[XML-SIG] minidom with xmlproc (pure-Python DOM)

Martin v. Loewis martin@v.loewis.de
02 Sep 2002 06:41:28 +0200


Pat Notz <patnotz@yahoo.com> writes:

> Does anyone have an example of using the xmlproc parser with minidom?

Untested, but...

parser = xml.sax.make_parser("xml.sax.drivers2.drv_xmlproc")
# alternatively:
# parser = xml.sax.sax2exts.XMLValParserFactory.make_parser()

doc = xml.dom.minidom.parse(resource, parser = parser)

HTH,
Martin