On Mon, 2005-03-21 at 16:23 -0500, Greg Wilson wrote: > Title says it all --- is there a way to get xml.dom.minidom to validate > a document against a DTD? Or against a Relax:NG schema? I've googled, > but am coming up dry...
Not a direct answer, but close. With 4Suite's cDomlette the following recipe does the trick: http://uche.ogbuji.net/tech/akara/nodes/2003-01-01/relaxng See also: http://uche.ogbuji.net/tech/akara/nodes/2003-12-30/relaxng-python -- Uche Ogbuji Fourthought, Inc. http://uche.ogbuji.net http://4Suite.org http://fourthought.com Use CSS to display XML, part 2 - http://www-128.ibm.com/developerworks/edu/x-dw-x-xmlcss2-i.html Introducing the Amara XML Toolkit - http://www.xml.com/pub/a/2005/01/19/amara.html Gems from the Mines: 2002 to 2003 - http://www.xml.com/pub/a/2005/03/02/pyxml.html Be humble, not imperial (in design) - http://www.adtmag.com/article.asp?id=10286 Querying WordNet as XML - http://www.ibm.com/developerworks/xml/library/x-think29.html Packaging XSLT lookup tables as EXSLT functions - http://www.ibm.com/developerworks/xml/library/x-tiplook2.html _______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig