Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

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

Kevin L. Cobb

2005-08-16


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?
 

 
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.