[XML-SIG] Minidom
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Mon, 19 Mar 2001 22:35:08 +0100
> I wish to know how to reading xml files with validation...
>
> there's a parse method:
> xml.dom.minidom.parse(filename, parser)
>
> What should I put as a parser?
Depends on whether you only have Python 2, or PyXML. In Python 2, no
validating parser is included. With PyXML,
xml.sax.sax2exts.XMLValParserFactory.make_parser() will create you a
validating SAX parser (namely, xmlproc, unless additional validating
parsers have been registered).
Regards,
Martin