[jdom-interest] RE: Schema Validation Question - xs:double data type

Kevin L. Cobb kevin.cobb at emergint.com
Tue Aug 16 07:52:15 PDT 2005


Sorry, I had the wrong error. The problem is not that the QuantityValue
is not a double data type. The problem is that the element QuantityValue
cannot be a child element of its parent. 
 
 

________________________________

From: Kevin L. Cobb 
Sent: Tuesday, August 16, 2005 10:42 AM
To: jdom-interest at jdom.org
Subject: Schema Validation Question - xs:double data type


I have an XML element that looks like this:
 
    <QuantityValue>9999999</QuantityValue>
 
My schema defines this element like this:
 
    <xs:element name="QuantityValue" type="xs:double"/>
 
Schema Validation errors with the parser
org.apache.xerces.parsers.SAXParser, errors with this message:
 
    Invalid content starting with element 'QuantityValue'. One of
'{"":CP}' is expected.
 
Could this be a bug in SAXParser. If not, can anyone explain the error?
 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050816/cb892893/attachment.htm


More information about the jdom-interest mailing list