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 Thomas Pawlitzki <ma...@pawlitzki.name> on 2008/01/15 19:50:43 UTC

axis2 [1.3] Possibilities to get xml from ADB

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

<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


Re: axis2 [1.3] Possibilities to get xml from ADB

Posted by Amila Suriarachchi <am...@gmail.com>.
On Jan 16, 2008 12:20 AM, Thomas Pawlitzki <ma...@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.