As status tag is of string type and I have mentioned it as nillable = "False", but even though when I am passing this tag as <status/>, then also its validating xml.... but as i mentioned nillable property as false then it should not validate it ..... please correct me if i m wrong..The nillable attribute doesn't work that way. It's easy to look that up in any tutorial.
nillable = "false" is the default behaviour.
<Status xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
Please suggest me how to make tag of string datatype as not nillable.You have to be careful about the vocabulary.
Is there any significance of using nillable = "false" in int datatype tag. Means if we want to make it as optional then need to mention it as minoccurs = 0..... is it correct?
Requirement is simple:
Just want to make some tag as optional and some as mandatory, tag can be of integer or string type.
or, as in your example, if the content is actually constrained to a list of values, use enumerations.
I read that nillable = "false" is default behaviour.An empty string is still a valid string.
If it is default then why one can leave a tag of string datatype as empty, while at the same time tag of int type will through an error.
Whether empty tag is being considered as null value or empty string.... ?- nillable is a declaration in the schema.
Nillable = "false" and "xsi:nil" is different or same.