I am doing an Android application. In my app I have to parse a xml page.The data in the xml page is in the following format.
<root>
<tag1>data</tag1>
<tag2>
<div>data1</div><div>data2</div>
</tag2>
</root>
to tried to take data through sax parsing.
if (localName.equalsIgnoreCase("tag1"))
if (localName.equalsIgnoreCase("tag2"))
But I am not getting any data from tag2 but getting value from tag1.I want to get all data include div tag also then only i can show data in like html page.
Use this sample code