Re: [xml] Entities defined using other entities

On Wed, Nov 22, 2006 at 04:36:51PM -0500, christophe barbe wrote:
In case somebody else has the same problem,
xmlSubstituteEntitiesDefault() was not helpful but setting
XML_PARSE_NOENT in the third argument of xmlReadFile() did the job.

There is a good explanation for that:
xmlSubstituteEntitiesDefault is based on global variables, changing behaviour
of a shared library using a global variable is evil, simply because you may
not be the only user of that library within a given program. That's why
all the new APIs rely on flags passed to each parser to modify the
behaviour, xmlReadxxx() are part of those new APIs, that's why they won't
be affected by xmlSubstituteEntitiesDefault().


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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