Hi there,

I've tried these suggestions for adding some xml to an xsd:any type: 

1. parse the string to the AnyNode tree
2. create the Message (castor) object 
3. add the root AnyNode to the message object
4. marshal the message object

I'd like to know how to do step 1!

My test code looks like this:
 StringReader xml = new StringReader("<SomeXml><SomeContent/></SomeXml>");
 AnyNode datanode = (AnyNode)Unmarshaller.unmarshal(new
AnyNode().getClass(), xml);

When looking at the datanode, it seems it has no elements!!! When adding
this datanode to a (Castor) object, and then marshalling it, I get a
NullPointerException.

What am I doing wrong????

Thanks,
 Michel

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to