in reply to Re: Caching Entities with XML::LibXML
in thread Caching Entities with XML::LibXML
I think the answer is "sort of." You are doing a validate() or is_valid() call, right?
No, just a simple parse. Specifying validation => 0 doesn't stop the behaviour. The parser needs the DTD to know that is character U+00A0. I don't see how to tell the parser to use a preconstructed XML::LibXML::Dtd object.
On the other hand, HTML::DTD does provide a handy source for the DTDs for one's ext_ent_handler. ( ... or not. It doesn't provided xhtml-lat1.ent which is required by xhtml1-strict.dtd )
I just noticed something called "XML catalogs" in the Parser documentation. It sounds like a simple solution, and it sounds like it allows reuse of the compiled DTDs.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Caching Entities with XML::LibXML
by Your Mother (Archbishop) on Feb 24, 2010 at 22:46 UTC | |
by ikegami (Patriarch) on Feb 25, 2010 at 02:04 UTC | |
by ikegami (Patriarch) on Feb 28, 2010 at 07:02 UTC |