• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

XSD element validation

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
     
    reply
      Bookmark Topic Watch Topic
    • New Topic