1

how to read XML and then convert/transform it to variable String, I have try with Jsop library, but not success, with JSoup I get html format.

I want to read link in below to String: http://bowingdown.wordpress.com/feed/

And then put it to String, I want to as below, example;

String data = "<rss xmlns:content=blablabla><channel>blablbabla</channel></rss>";

And i have read in here HTTP request for XML file, but not success.

Thanks for help.

Community
  • 1
  • 1
Dave Jackson
  • 837
  • 5
  • 19
  • 28
  • Why do you want to store the XML in one single String? Thats kinda bad, in my opinion. String uses 2 bytes per character, and I guess that RSS feed will keep growing. What do you try to succeced here? – Tobias Moe Thorstensen Jan 23 '13 at 08:23
  • I want to parsing with XmlPullParser, but before parsing it must be read with Class StringReader. – Dave Jackson Jan 23 '13 at 08:28

1 Answers1

1

Use xml parsing techniques such as XmlPullParser ,SAX parser or DOM parser.

XML Pull parser is the parser recommended in the developer's site of android Here is a tutorial for Pull parser .

GrIsHu
  • 29,068
  • 10
  • 64
  • 102
pvn
  • 2,016
  • 19
  • 33