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 Sunny44 <su...@yahoo.com> on 2007/07/05 19:56:29 UTC
Marshalling and UN-Marshalling Question
I am trying to Marshall the Object to Simple String XML. Currently i am using
ADB as a databinder but i am not sure "HOW TO GET XML as string from
XMLStreamReader
i.e.
XMLStreamReader reader =
<ObjectNAME>.getPullParser(<property_Value>.MY_QNAME);
OMElement omElt = new StAXOMBuilder(reader).getDocumentElement();
/// This throws Null pointer exception ---
String xml2 = omElt.toString();
SO HOW do i get the XML of as String from XMLStreamReader....?
Please add code snippet.
thanks
--
View this message in context: http://www.nabble.com/Marshalling-and-UN-Marshalling-Question-tf4031326.html#a11451561
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Marshalling and UN-Marshalling Question
Posted by Amila Suriarachchi <am...@gmail.com>.
this may help you.
http://wso2.org/library/2068
Amila.
On 7/5/07, Sunny44 <su...@yahoo.com> wrote:
>
>
> I am trying to Marshall the Object to Simple String XML. Currently i am
> using
> ADB as a databinder but i am not sure "HOW TO GET XML as string from
> XMLStreamReader
>
> i.e.
>
> XMLStreamReader reader =
> <ObjectNAME>.getPullParser(<property_Value>.MY_QNAME);
>
> OMElement omElt = new
> StAXOMBuilder(reader).getDocumentElement();
>
> /// This throws Null pointer exception ---
> String xml2 = omElt.toString();
>
> SO HOW do i get the XML of as String from XMLStreamReader....?
>
>
> Please add code snippet.
>
> thanks
>
> --
> View this message in context:
> http://www.nabble.com/Marshalling-and-UN-Marshalling-Question-tf4031326.html#a11451561
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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.