[xml] validation bug ?



Is there possibly a ``ret=0'' statement missing in valid.c in function
xmlValidateOneElement() for the ``Required Attribute'' Section ?

The code looks like this:

   if (qualified == -1) {
                if (attr->prefix == NULL) {
                    VERROR(ctxt->userData,
                       "Element %s doesn't carry attribute %s\n",
                           elem->name, attr->name);
                } else {
                    VERROR(ctxt->userData,
                       "Element %s doesn't carry attribute %s:%s\n",
                           elem->name, attr->prefix,attr->name);
                }
--->>> ret =0 ?

           } ...

And this causes to produce an error without returning an error exit code
(which subsequently causes my program to produce a segfault :( )

-d

--
Heiko W. Rupp
Project Management
WiredMinds Informationssysteme GmbH
Wilhelmsplatz 11
D-70182 Stuttgart

Email: Heiko Rupp WiredMinds de            Phone: +49 711 49048-232
Mobile: +49 172 7471 438                   Fax:   +49 711 49048-111

-- 
Mag. David Meyer                        Wiedner Hauptstrasse 8-10
Vienna University of Technology         A-1040 Vienna/AUSTRIA
Department for Statistics, Probability  Tel.: (+431) 58801/10772
Theory and Actuarial Mathematics        mail: david meyer ci tuwien ac at




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]