You are viewing a plain text version of this content. The canonical link for it is here.
Posted to p-dev@xerces.apache.org by "Jason E. Stewart" <ja...@openinformatics.com> on 2004/10/20 06:33:31 UTC

[Ted Onley] DTD's and XML::Xerces

How/Where do DTD files fit into XML::Xerces?  Is validation against a 
DTD file available?

Thanks

Ted Onley



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org


Re: [Ted Onley] DTD's and XML::Xerces

Posted by "Jason E. Stewart" <ja...@openinformatics.com>.
jason@openinformatics.com (Jason E. Stewart) writes:

> From: Ted Onley <te...@onley.org>
> Subject: DTD's and XML::Xerces
> To: "Jason E. Stewart" <ja...@openinformatics.com>
> Date: Mon, 18 Oct 2004 15:05:01 -0500
>
> How/Where do DTD files fit into XML::Xerces?  Is validation against a 
> DTD file available?

Hi Ted,

The only thing special you need to do is ensure that you have turned
on validation. You can see the examples in samples/ for how to do this
for each of the different parsers.

Besides that either the DTD must be in the same directory as the file
to be validated, or you must use an EntityResolver to locate the
DTD. There are example for how to do this in samples/ and t/.

Cheers,
jas.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-p-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-p-dev-help@xml.apache.org