Re: [xml] XML Catalog problem
- From: Daniel Veillard <veillard redhat com>
- To: Chris Wareham <chris wareham pa press net>
- Cc: xml gnome org
- Subject: Re: [xml] XML Catalog problem
- Date: Mon, 13 Feb 2006 08:21:06 -0500
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]