You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by tn...@ca.ibm.com on 2001/01/03 22:43:09 UTC

Re: Problem with ReuseValidator (was Re: Problems with XML4C source archive for UNIX)

I think this has been fixed in the latest Xerces-C code.  Please download
the latest package (http://xml.apache.org/dist/xerces-c/nightly/) and try
again.  Please let me know if problem persists.

Thanks!

Tinny

>kbagepalli@informatica.com wrote:
>
>  I am facing a problem with the reusevalidator code for xerces 1.3.
>
>  In XMLScanner::scanStartTag()
>
>  After XMLAttDef* attDef = elemDecl->findAttr....
>
>          It checks the code if it was added. Else there is a no code
which
>  throws an exception.
>          So I added
>          if (wasAdded)
>          {
>          }
>          //START
>          else
>          {
>                  if (!attDef)
>                  {
>               fValidator->emitError
 >                 (
>                          XMLValid::AttNotDefinedForElement
>                   , fAttNameBuf.getRawBuffer()
>                   , elemDecl->getFullName()
>                  );
>                  }
>          }
>          //END
>
>  Can somebody verify if this is correct and fix this in the source
system.
>
>  Thanks
>
>  Kiran