Hi,
why are you defining an XML mapping at all, when you could generate Java
sources from your XML schema and have the binding provided for free ?
Regards
Werner
On 09.08.2010 20:55, Justin Boyd wrote:
public class MyObject {
private MyEnum myEnum;
...
}
<class name="MyObject">
<field name="myEnum" type="MyEnum"/>
</class>
so once I have this, the problem is that Castor doesn't give the XML type an
"xs:string" which is how the XSD specifies it. I've tried all sorts of
other ways, including adding:
<bind-xml type="string"/>
but nothing has worked, the only thing I've gotten to work is to add to
MyObject:
...
public String getMyEnumAsString() {
return myEnum.toString();
}
...
I'd imagine this is extremely simple, but so far digging through the docs
I've not found any examples of this.
Thanks in advance!
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email