Hi Jochen, I was having some trouble with the default-value thing. The problem arises when default value handling fails (not parseable). Currently a SAXException is thrown, the problem is that it uses the following expression:

throw new LocSAXException(
                   "Failed to convert string value to date instance: "
                           + pValue, getLocator());

but getLocator() throws a IllegalStateException which states that the built-in type doesn't have a location (this is true for all primitive types I've tested).

Another problem I have is with hexBinary and base64. I don't know how to construct their initialization besides from the general method I proposed for AtomicTypeSG (using DatatypeConverter - i.e. runtime conversion).

And last but not least is how to handle default values for enumerations... If TypedValue knew how to generate itself...

Best regards,

Nacho

Jochen Wiedmann wrote:

On Apr 12, 2005 10:51 AM, Nacho G. Mac Dowell <[EMAIL PROTECTED]> wrote:



Anyway I think I know now enough about the issue to tackle it: All
SimpleTypeSG should provide the correct getCastFromString and
getXMLField should use this. right?



Exactly.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to