Sorry if this is a very simple question. I'm a newbie.
I want a very simple way to [un]marshal the usual Java classes to their XSD
equivalents. When I use the static runtime Marshaller method, I notice that the result
doesn't have the expected XSD namespace declaration/prefix. This seems to prevent me
from unmarshalling the result back to the original simple Java class.
For example, say I start with an empty org.w3c.dom.Document like this ..
org.w3c.dom.Document doc;
Marshaller.marshal("myString", doc);
Then doc contains this:
<string>myString</string>
So far, OK, but when I try to do this:
Unmarshaller.unmarshal(java.lang.String, doc);
an exception is thrown. So what do I do if I want to just [un]marshal
java.lang.String <--> xsd:string, and also the following:
java.lang.Boolean <--> xsd:boolean
java.lang.Integer <--> xsd:int
etc.
Thanks!
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user