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 Chris Hill <ch...@wolfram.com> on 2001/06/05 22:17:04 UTC
XMLAttDef::JustFaultIn and reuse validator
In my testing of Xerces 1.4 while reusing the validator, I've discovered
that there are times when undeclared attributes get faulted into the name
pools and get stuck there.
I can parse a file once, and I'll get an undeclared attribute error and
then I'll parse it again and I don't get the message. There was some code
added to scanStartTag in XMLScanner.c to deal with this, but the code looks
wrong to me. It sets the XMLAttDef::JustFaultIn creation reason if NOT
reusing the validator. It also "resets the CreateReason to avoid redundant
error", but the error isn't redundant if the validator is being reused. The
code was also not placed in the parallel scanStartTagNS code, so the exact
behavior depends on if the parser is doing namespaces or not.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org