How to enforce Elements has value by XSD definition.

Roseanne Zhang

If it is xsd:date type, empty string will not be valid. If it is xsd:string type, you can use length or pattern facet to control it...

However, if you want to do the opposite, allowing nil value for the elements as above defined, you need to do something special, I've an FAQ on the web, take a look:

Q. What does nillable mean in schema? How to specify it in instance document?

Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact