[XML-SIG] validating xml
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Thu, 9 Aug 2001 22:25:22 +0200
> My general question is: What's the easiest and best way to do this with
> Python 2.1?
The easiest solution probably is to install PyXML. That will give you
the xmlproc parser, which is a validating parser. The easiest way to
access it is either through SAX:
xml.sax.sax2exts.XMLValParserFactory.make_parser()
or by building a DOM tree with a validating parser:
xml.dom.ext.reader.Sax2.FromXml(data, validate=1)
Hope this helps,
Martin