wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes schema: decimal type that allows empty string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "schema: decimal type that allows empty string" Watch "schema: decimal type that allows empty string" New topic
Author

schema: decimal type that allows empty string

Blake Minghelli
Ranch Hand

Joined: Sep 13, 2002
Posts: 331
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?


Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: schema: decimal type that allows empty string
 
Similar Threads
Axis 1.4 throwing org.xml.sax.SAXException: Invalid element
MS Exchange web service: If the 'nillable' attribute is false in the schema, the 'xsi:nil' attribute
Invalid type (xsi:type) is set when XML request is generated from web service client
in Schema Dynamic value for maxLength - help
XSL and Enumeration Query