[Expat-discuss] DTD processing
Fred L. Drake, Jr.
fdrake@acm.org
Thu, 8 Mar 2001 12:07:55 -0500 (EST)
Ferenc Gémesi writes:
> I am parsing 'xml' file vith 'XML::Perser::Expat' Perl modul. In the 'xml'
> file is 'external 'DTD' file reference.
...
> How can I catch the errors in the 'Expat' environment?
> Thank You for help,
The errors here are validity errors, and Expat is not a validating
parser. To catch these errors you need to either use a validating
parser or perform validation at the application level.
Expat 1.95.* provides enough information that the validation can be
performed if that's appropriate for your application.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Digital Creations