Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD element validation

 
Ketan KC Chachad
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Ketan KC Chachad
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic