This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Product and Other Certifications and the fly likes problem in applying unique constraint on xml attribute through xsd unique Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "problem in applying unique constraint on xml attribute through xsd unique " Watch "problem in applying unique constraint on xml attribute through xsd unique " New topic
Author

problem in applying unique constraint on xml attribute through xsd unique

ganesh b pol
Greenhorn

Joined: Aug 20, 2008
Posts: 14
my xsd file is



i want id attribute of mq_system must be unique
i.e. for following xml file


must not be valid since its id attribute contains duplicate element how should i achive this with xsd.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem in applying unique constraint on xml attribute through xsd unique
 
Similar Threads
Axis 1.4 throwing org.xml.sax.SAXException: Invalid element
schema generation
XML valiadation using schema
problem in applying restriction on xml attribute jaxb i.e. unable to do validation for attributes
unble to validate xml against schema