Java Mailing List Archive

http://www.junlu.com/

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

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

Kevin L. Cobb

2005-08-16


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@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?
 

 
_______________________________________________
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.