Re: [xml] Ignore external subset



On Fri, Oct 24, 2003 at 06:28:27PM +0200, Keim, Markus wrote:
  How can you expect to "validate" without fetching the external
subset if there is one ? I cannot understand such a requirement.

Hum, i *don't* want to validate while parsing.
On the contrary, i want to completely ignore the external subset,
even if it's present, just parse in the document.

  Excellent, then you don't have anything to do, it's libxml2
default behaviour.

While parsing i *can't* determine a base path for that documents,
so, if "parseCtxt->loadsubset" is true (the default), the

  No that should not be the default. Something has changed that value.

Using an own external entity loader, i want to validate the
document subsequently.

  If there is an internal subset that won't work. If there is only
an external subset compute the URI-Reference (uri.h) parse it as a DTD
(xmlParseDTD) and validate the resulting tree (see valid.h).

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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