Hi Kamal,
At 17.33 10/03/2005 -0800, kamal gupta wrote:
Hi,
I have a XML schema file with unique constraints at attribute level of some element.
e.g uniqueness of attribute (called name) in an element (called list) is added as follows:
<xs:unique name="listName"> <xs:selector xpath=".//list"/> <xs:field xpath="@name"/> </xs:unique>
And in my code, I have set fgXercesSchemaFullChecking to true.
Can you try setting fgXercesIdentityConstraintChecking to true? That should be the default value, but better double checking...
Alberto
But when I try to test this by having list element with name="friends" twice in my XML document, I don't see Xerces (version 2.6.0) catching this uniqueness failure.
I tried my XML Doc and Schema with some tool on net which uses Xerces J2 engine, that seems to be captuing this error but with Xerces-C engine, it doesn't.
Does anyone else has faced this issue ?
Any comment/suggestion on how to validate uniqueness constrains with xerces-c will be highly appreciated.
Thanks a lot. Kamal.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]