Basically, in your case, we are dealing with an invalid doc, since ""
(empty string) is not in the value space of the "float" type. That being said,
XmlBeans makes efforts to give you access to your data even for invalid
documents. But this case, I think, falls under the category of things that are
just too confusing for XmlBeans to let pass by - most people,
I believe, would find raising an error and pointing out the
discrepancy more helpful than, say, converting it to 0
silently.
Radu
-----Original Message-----
From: Shaun Farrugia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 19, 2005 1:41 PM
To: [email protected]
Subject: empty Attribute types cause errorI'm getting a ValueOutOfRange error when i call myObj.getPrice() . myObj is an interface created by XMLBeans based on a schema. getPrice should return a float. the schema defines Price as an attribute with a float type. The instance of the schema has price="". When I call .getPrice i get the exception thrown. how do i allow "" for attribute values?
Shaun.Farrugia. . [EMAIL PROTECTED]
perm. desk.734.887.2148. . .cell.313.363.5006
aim.dier0b0t . . .

