• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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