title: Parsing xml data with attributes in the tag in android
body: <p>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.</p>
  
  <p>Like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  02  &lt;catalog&gt;
  03      &lt;book id="001" lang="ENG"&gt;
  04          &lt;isbn&gt;23-34-42-3&lt;/isbn&gt;
  05          &lt;regDate&gt;1990-05-24&lt;/regDate&gt;
  06          &lt;title&gt;Operating Systems&lt;/title&gt;
  07          &lt;publisher country="USA"&gt;Pearson&lt;/publisher&gt;
  08          &lt;price&gt;400&lt;/price&gt;
  09          &lt;authors&gt;
  10              &lt;author&gt;Ganesh Tiwari&lt;/author&gt;
  11          &lt;/authors&gt;
  12      &lt;/book&gt;
  13      &lt;book id="002"&gt;
  14          &lt;isbn&gt;24-300-042-3&lt;/isbn&gt;
  15          &lt;regDate&gt;1995-05-12&lt;/regDate&gt;
  16          &lt;title&gt;Distributed Systems&lt;/title&gt;
  17          &lt;publisher country="Nepal"&gt;Ekata&lt;/publisher&gt;
  18          &lt;price&gt;500&lt;/price&gt;
  19          &lt;authors&gt;
  20              &lt;author&gt;Mahesh Poudel&lt;/author&gt;
  21              &lt;author&gt;Bikram Adhikari&lt;/author&gt;
  22              &lt;author&gt;Ramesh Poudel&lt;/author&gt;
  23          &lt;/authors&gt;
  24          &lt;/book&gt;
  25  &lt;/catalog&gt;
  </code></pre>
  
  <p>But the data that i have been given is like this:</p>
  
  <p>How do i parse data with attributes as above?</p>