You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Alexis Agahi <al...@users.sourceforge.net> on 2002/10/14 18:32:03 UTC
Serialize/Deserialize a DOM Element into a java Object
Hi all,
Is there a way to deserialize a DOM element into a java object with Axis?
(also how would it be possible to serialize and append an object to a DOM
element?)
I've successfully perform this feature with apache SOAP 2.3 using
unmarshaller, but I cannot see the process with Axis encoding package.
Here is a sample of code of what I'm trying to do
Obviously I'm on the wrong way (I guess).
-------------
Element element = ...;
MessageElement me = new MessageElement( element );
ElementDeserializer ed = new ElementDeserializer();
DeserializationContext dc = new DeserializationContextImpl( msgContext, ed );
dc.setCurElement( me );
dc.parse();
Object value = ed.getValue();
--------------
Thanks for any clues.
--
Al