File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes XSD element validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSD element validation" Watch "XSD element validation" New topic
Author

XSD element validation

Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
What does one need to specify in an XSD element tag to ensure that the corresponding XML tag cannot contain null/blank values? For example if I have the following XML document

Then in XSD what do I write for the name element so that it cannot contain a null/blank values. My current XSD looks like as follows:


Regards,<br />Ketan KC Chachad
Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
The error messages listed below are those caught and stored in a SAXParserException object
  • cvc-type.3.1.3
  • cvc-enumeration-valid
  • cvc-complex-type.2.4.a
  • cvc-datatype-valid.1.2.1
  • cvc-pattern-valid
  • I would also like to know where I can find out the complete listing of all possible validation error messages that are thrown by the validator class.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: XSD element validation