Posted on 2005-04-07 20:28:56-07 by shlomif
Custom DTD Location or Content
Hi! Is there any way to set a custom location for the DTD used to validate the XML using XML::LibXML? Better yet is there anyway to specify its content? Thanks in advance, Shlomi Fish
Direct Responses: 314 | Write a response
Posted on 2005-04-08 14:55:23-07 by eserte in response to 312
Re: Custom DTD Location or Content
You can use the load_catalog method to load a catalog file which specifies the public/systemid to dtd mapping. For an example of the catalog format, you can probably look at /etc/xml/catalog.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.