> I have tracked the root of this problem down to
> trunk/src/xercesc/validators/datatype/QNameDatatypeValidator.cpp line
185:
>
> for ( ; i < enumLength; i++)
> {
> if (XMLString::equals(normContent,
> getEnumeration()->elementAt(i)))
> break;
> }
>
> if (i == enumLength)
> ThrowXMLwithMemMgr1(InvalidDatatypeValueException,
> XMLExcepts::VALUE_NotIn_Enumeration, content, manager);
>
> The comparison XMLString::equals is comparing the QName string with the
> URI prefix (i.e. tns:Sender) instead of the the URI itself (i.e.
> {http://www.example.com/qname}:Sender). So if the XML uses a different
> namespace prefix than that of the schema definition, it will fail.
This is definitely a bug. Can you create a Jira report and attach the
relevant files?
By the way, the Microsoft parser refuses to parse a document that contains
a namespace declaration for the prefix "xml", so you might want to avoid
it for the sake of portability.
Thanks!
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]