Re: [xml] Validity Checking headache :-(



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]