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.

2
  • 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? Commented Jan 23, 2013 at 8:23
  • I want to parsing with XmlPullParser, but before parsing it must be read with Class StringReader. Commented Jan 23, 2013 at 8:28

1 Answer 1

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 .

Sign up to request clarification or add additional context in comments.

1 Comment

@HaicalRams Feel free to accept the answer if thats what you are looking for

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.