I want to strip out the tags from this page http://ptwc.weather.gov/feeds/ptwc_rss_indian.xml
Just I want to take the content between description tags in the above xml
a)For this whether I can use xml parser or regex
b) If I use regex how to strip out that? (I used the below code but it's not working
Pattern p= Pattern.compile("<description>(.*)</description>",Pattern.DOTALL);
//Matcher matcher=p.matcher(result);
Matcher matcher = p.matcher(result);
if (matcher.matches())
{
String s1=matcher.group(1);
textView.setText(s1);
}
else
{
textView.setText("No Matches);
}