Hi Thomas,

I honestly cannot see the problem. Why not use a DOM DocumentBuilder to have a DOM Document instance created, and supply this to the marshal(Node) method ? From there on, Castor will marshal your object instance to a DOM tree, starting at the root location of your DOM tree.

Regards
Werner

On 16.12.2010 00:01, [email protected] wrote:
Hi Werner,

I want to marshall to a DOM Node.

I have seen there is a method setNode() in the Marshaller class. But the type 
of the parameter (Node) is an interface and I want to marshall to a new Node. 
How can I do this? Do you have an example for doing that?

Thanks in advance
Thomas

________________________________________
Von: Werner Guttmann [[email protected]]
Gesendet: Mittwoch, 15. Dezember 2010 20:30
Bis: [email protected]
Cc: Kuhlmann, Thomas, NMT-MP (extern)
Betreff: Re: [castor-user] Marshalling to W3C-Document

Hi Thomas,

what precisely are you trying to marshal to ? As it stands, Castor is
capable of marshalling to

a) a Writer.
b) A SAX DocumentHandler
c) a DOM Node

amongst others.

Regards
Werner

On 15.12.2010 12:31, [email protected] wrote:
Hi,

is there any way to marshallt o a W3C-Document instead of a writer?
Does anyone has an example for doing that.

Thanks in advance
Thomas




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to