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

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