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/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to