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.
In reply to Re^2: Caching Entities with XML::LibXML
by ikegami
in thread Caching Entities with XML::LibXML
by ikegami
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |