Re: [xml] Implementation of JAXP interface using libxml2



Daniel Veillard wrote:
I've tried registering my own external entity loader function with 
xmlSetExternalEntityLoader, but it isn't being called when the parser 
encounters e.g.

  <!DOCTYPE doc SYSTEM "185.ent">

Is there something else I need to do?

  by default libxml2 does not fetch external entities, basic mode of
operation of non-validating parsers. Turn on DTD loading,

I have already called xmlCtxtUseOptions with the XML_PARSE_DTDLOAD flag
before xmlParseDocument with that context (...?)
-- 
Chris Burdess



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]