I am new to android .I have worked with JSON data but have never worked with XML data.The tutorials on the web show xml data which are simple and have no attribute value in the tag.
Like:
<?xml version="1.0" encoding="UTF-8"?>
02 <catalog>
03 <book id="001" lang="ENG">
04 <isbn>23-34-42-3</isbn>
05 <regDate>1990-05-24</regDate>
06 <title>Operating Systems</title>
07 <publisher country="USA">Pearson</publisher>
08 <price>400</price>
09 <authors>
10 <author>Ganesh Tiwari</author>
11 </authors>
12 </book>
13 <book id="002">
14 <isbn>24-300-042-3</isbn>
15 <regDate>1995-05-12</regDate>
16 <title>Distributed Systems</title>
17 <publisher country="Nepal">Ekata</publisher>
18 <price>500</price>
19 <authors>
20 <author>Mahesh Poudel</author>
21 <author>Bikram Adhikari</author>
22 <author>Ramesh Poudel</author>
23 </authors>
24 </book>
25 </catalog>
But the data that i have been given is like this:
How do i parse data with attributes as above?