tags:

views:

42

answers:

2

Hi friends,

I am getting the value from web server .I am getting the value as string can anybody tell how to convert to string to xml file and where to store the xml file in android and how to access the file parse the value can any body give example

any help would be appreciated

Thanks in advance

A: 

In my understanding, Your meaning of "getting the value as string" is parse the content of InputStream. I think you don't have to parse the content and then convert the string to xml file, you can just use FileOuputStream to write the data in InputStream into file system.

You can use SAX or DOM to parse xml, they are both supported by android. See this post for more info.

Tony
A: 

Just pass the inputstream(response) from webserver to the Dom or Sax Methods no need to convert in to String

Travis