[XML-SIG] turning of dtd checker

Paul Tremblay phthenry at earthlink.net
Sat Oct 25 15:22:10 EDT 2003


Apologies for posting my question three times. I didn't think my email
was getting through. In fact, the mail was getting put in a mail box I
didn't know existed.

Sorry again!

Paul

On Sat, Oct 25, 2003 at 02:55:01PM -0400, Paul Tremblay wrote:
> Date: Sat, 25 Oct 2003 14:55:01 -0400
> From: Paul Tremblay <phthenry at earthlink.net>
> To: xml-sig at python.org
> User-Agent: Mutt/1.4i
> Subject: [XML-SIG] turning of dtd checker
> 
> 
> Is there a way to run SAX if the dtd in the document points to a url,
> and the url cannot be retrieved? I can parse my documents with SAX so
> long as I am connected to the internet. But when I am not connected, I
> get an error that the url cannot be found. 
> 
> I could just delete the dtd, but this is kind of a hack. I am
> distributing code, and I would like for the XML document which I am
> parsing to have a dtd.
> 
> Here is a snippet of my code:
> 
> 
> 	parser = xml.sax.make_parser()
>         parser.setFeature(feature_namespaces, 0)
>         parser.setErrorHandler(ErrorHandler())
>         section_handler = FormSections( 
>             write_obj = write_obj,
>             highest_level = self.__highest_level,
>             )
>         
> 	parser.setContentHandler(section_handler)
> 	parser.parse(self.__input_file)
> 
> Thanks
> 
> Paul
> 
> -- 
> 
> ************************
> *Paul Tremblay         *
> *phthenry at earthlink.net*
> ************************
> 
> _______________________________________________
> XML-SIG maillist  -  XML-SIG at python.org
> http://mail.python.org/mailman/listinfo/xml-sig

-- 

************************
*Paul Tremblay         *
*phthenry at earthlink.net*
************************



More information about the XML-SIG mailing list