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. 

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]

Reply via email to