Hello,
I design schemas using XMLSPY, a great program. Often, I do not want to make an element optional, but do need to allow blank values. For strings this is easy, I simply set the minlength = 0.
My question is, how can I accomplish this with other datatypes(integer, decimal, boolean, etc..)? If i set MinOccurs =0, then the element becomes optional, which I do not want. Can I define a pattern or facet for this? Any help is greatly appreciated. Thank you!
Frank Orozco
I design schemas using XMLSPY, a great program. Often, I do not want to make an element optional, but do need to allow blank values. For strings this is easy, I simply set the minlength = 0.
My question is, how can I accomplish this with other datatypes(integer, decimal, boolean, etc..)? If i set MinOccurs =0, then the element becomes optional, which I do not want. Can I define a pattern or facet for this? Any help is greatly appreciated. Thank you!
Frank Orozco