Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

schema: decimal type that allows empty string

 
Blake Minghelli
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to define a required element of type 'decimal' that should allow up to 12 total digits and up to 2 fractional digits. It also must allow empty strings (i.e. element is present but contains no value).

Here is the xsd snippet for the element:
So, I want this to be a legal value in an instance document:
But when I validate (using Xerces), I get this error:
What do I need to do to make the element allow empty values?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic