Re: [xml] xmlParserCtxt.validate
- From: Daniel Veillard <veillard redhat com>
- To: Andrew Meyer <andrewmeyer34 yahoo com>
- Cc: xml gnome org
- Subject: Re: [xml] xmlParserCtxt.validate
- Date: Thu, 4 Aug 2005 12:27:35 -0400
On Thu, Aug 04, 2005 at 09:14:42AM -0700, Andrew Meyer wrote:
Hello all,
I'm debugging some code that relies on xmlParserCtxt
validation behavior that confuses me. My libxml2
version is 2.6.14.
Starting with an xmlParserCtxt with .validate set to
1, I parse XML that doesn't include a <!DOCTYPE>
declaration or any DTD information. After the
xmlParseDocument call, the xmlParserCtxt.valid field
is set to 0, which is what I'd expect, but the
.validate field also gets set to 0. Is this the
intended behavior?
yes there is no reason to raise an error for every element in the
document because the document had no DOCTYPE, resetting validate
is the simplest.
Daniel
--
Daniel Veillard | Red Hat Desktop team 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]