Search code examples
androidhtmlparsingxml-parsingresponse

How to parse the string response in android?


I'd like to know what is the easiest way to write to and parse a XML file in Android. My requirement is very simple. A sample file would be something like:

<HTML>
<HEAD>
<TITLE>Network Error</TITLE>
</HEAD>
</HTML>

Solution

  • I got it i am using this simple format its working fine Thank you .

    myTextView.setText(Html.fromHtml("<h2>Title</h2><br><p>Description here</p>"));