axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: axis2 [1.3] Possibilities to get xml from ADB
Date Wed, 16 Jan 2008 05:05:04 GMT
On Jan 16, 2008 12:20 AM, Thomas Pawlitzki <mailinglist@pawlitzki.name>
wrote:

> Hello,
>
> i am searching for a convinient way to get the XML from an ADB. It
> works, when i use the OMElement:
>
> adb.getOMElement(...).toString();
>
> But this is rather compilcated with the QNames and in one situation it
> does not work correctly. In one situation the content of the tags are
> stripped out and are replaced by \n


use omElement.toStringWithConsume(); method.
getPullparser is an obsolete method. user the serialize method.

thanks,
Amila.

>
>
> <test>Hello</test>
> becomes
> <test>
>   </test>
>
> So i wounder if there exists another way to get the xml from and ADB
> (over the getPullParser()?).
>
> Can anyone help?
>
> Thanks in advance.
> Greetings
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message