Use Transformer.transform(DOMSource, StreamResult):

http://www.theserverside.com/discussions/thread.tss?thread_id=26060

If Android included org.apache.xml.serialize you could use the simpler
XMLSerializer.

On Jul 30, 5:45 pm, beacon <indiantalkiedhi...@gmail.com> wrote:
> Thanks for your reply. But it is not similar to JSON. My sample data
> looks something like this
>
> anyType{ProductName=anyType{Text=Nadolol; Code=anyType{Value=11755;
> CodingSystem=FDB_routed; }; Code=anyType{Value=20.55472;
> CodingSystem=Google; }; Code=anyType{Value=7870; CodingSystem=FDB; };
> Code=anyType{Value=19.9453; CodingSystem=Google; }; }; }
>
> And I have confirmed with the web service and they have assured that
> they send back the data in XML format. But I am not able to get it in
> XML format.
>
> On Jul 30, 6:39 pm, Carlos Silva <r3...@r3pek.org> wrote:
>
> > On Fri, Jul 30, 2010 at 23:35, beacon <indiantalkiedhi...@gmail.com> wrote:
> > > Hi ,
>
> > >  I am trying to retrieve a XML document from web service. I am passing
> > > a soap object with a token implementing the OAuth concept and
> > > retrieving the data. But the data does not turn out to be in XML
> > > format. It contains a curly braces in the place of start tag and
> > > semicolons when it ends. Is there any way to retrieve the document in
> > > XML format as such?
>
> > > Thank you
>
> > > Beacon
>
> > From the description, it looks like JSON. Check it 
> > herehttp://en.wikipedia.org/wiki/JSON

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to