Posted on 2005-05-12 14:25:35-07 by ahulsbos
Need ParserOpts for external DTD

I like to use an external DTD in my config files. That way it is easy to support default values for attributes, that one then doesn't need to bother with in the XML.

Unfortunately, the only way to do that as I know is to pass the 'ParseParamEnt => 1' option to XML::Parser. I believe XML::SAX does not support this at all.

Arjan Hulsbosch

Direct Responses: 821 | Write a response
Posted on 2005-08-02 00:25:40-07 by chmrr in response to 448
Re: Need ParserOpts for external DTD
You might want to check out XML::Simple::DTDReader, which uses the DTD for default values, as well as to try to determine the strucutre of the data structure to create. - Alex "shamlessly pimping his own alternative module" Vandiver
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.