<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial size=2>What is the best way 
to validate xmls against my dtd in python?</FONT></SPAN></DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial size=2>I dont see minodom 
doing this. </FONT></SPAN></DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial size=2>Sax has dtd 
validation, but does not complain on dtd violations. (it does access the dtd, if 
it does not find dtd it complains me.)</FONT></SPAN></DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial size=2>I am using python 
3.1 on Win32 machine.</FONT></SPAN></DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial size=2>I was planning to 
try lxml2.2.4 but it shows DLL importerror. I posted the problem on this forum a 
few days back, but there is no reply on that.</FONT></SPAN></DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial size=2>Any 
help?!</FONT></SPAN></DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2>Regards</FONT></SPAN></DIV>
<DIV><SPAN class=289325609-08012010><FONT face=Arial 
size=2>Ashish</FONT></SPAN></DIV></BODY></HTML>