Re: [xml] Validity Checking headache :-(
- From: Fabrizio Ammollo <f ammollo reitek com>
- To: veillard redhat com
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] Validity Checking headache :-(
- Date: Wed, 16 May 2001 18:20:40 +0200
Hello,
Talking again about the problem I explained into my message, going through
the flow of the program and into the library I have found this in SAX.c,
startElement function:
...
if (ctxt->validate && (ctxt->myDoc->extSubset == NULL) &&
((ctxt->myDoc->intSubset == NULL) ||
((ctxt->myDoc->intSubset->notations == NULL) &&
(ctxt->myDoc->intSubset->elements == NULL) &&
(ctxt->myDoc->intSubset->attributes == NULL) &&
(ctxt->myDoc->intSubset->entities == NULL)))) {
if (ctxt->vctxt.error != NULL) {
ctxt->vctxt.error(ctxt->vctxt.userData,
"Validation failed: no DTD found !\n");
}
ctxt->validate = 0;
}
...
ctxt->validate is modified, but shouldn't be ctxt->valid instead the right
value to be modified ?
I'm using official libxml2 2.3.8
--
Bye,
Fabrizio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]