[EMAIL PROTECTED] wrote:
> There is a DOM Element serializer/deserializer in Axis
> (org.apache.axis.encoding.ser.ElementSerializer). Is this what you're
> looking for?

Sure, but how should I use it?
Do you have a little sample of code?

Thanks





> 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();
> 
> --------------

Reply via email to