Re: [xml] XML Catalog problem

On Mon, Feb 13, 2006 at 01:10:38PM +0000, Chris Wareham wrote:
    if (xmlValidateDocument(&valid_ctxt, parser->doc) == 0) {

  Very first thing is to not use xmlValidateDocument, it's a post
parsing validation mechanism, not the real one and for example won't
process the internal subset so won't work in this case. Use the real
validation as defined in the XML-1.0 spec i.e. as part of parsing.
  Use xmlReadDoc with the XML_PARSE_DTDVALID like xmllint --valid 
would do.


Daniel Veillard      | Red Hat
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]