title: How to read the particular XML tag from DOM parser in java <example mentioned>
body: <p>The xml is -</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;app_content&gt;
              &lt;app_type value="Browser"&gt;
                    &lt;item&gt;
                          &lt;item_name&gt;sdk_version&lt;/item_name&gt;
                          &lt;item_value&gt;01.00.001&lt;/item_value&gt;
                          &lt;item_save&gt;01.00.001&lt;/item_save&gt;
                          &lt;item_desc&gt;LG SDK Version&lt;/item_desc&gt;
                          &lt;item_type&gt;edit&lt;/item_type&gt;
                    &lt;/item&gt;
                    &lt;item&gt;
                          &lt;item_name&gt;use_internet&lt;/item_name&gt;
                          &lt;item_value&gt;Yes/No&lt;/item_value&gt;
                          &lt;item_save&gt;Y/N&lt;/item_save&gt;
                          &lt;item_desc&gt;Internet Use&lt;/item_desc&gt;
                          &lt;item_type&gt;combo&lt;/item_type&gt;
                    &lt;/item&gt;
   &lt;/app_type&gt;
  &lt;/app_content&gt;
  </code></pre>
  
  <p>I want to read the contents of each item tag, so I have 2 items tag inside app_type.</p>
  
  <p>I made the code like this -</p>
  
  <pre><code>Element mainElement = (Element) document.getElementsByTagName("app_type").item(0);
  NodeList browserCategories =  mainElement.getElementsByTagName("item"); //item
          for(int i=0;i&lt;browserCategories.getLength();i++){           
          Element browserCategoryElement = (Element) browserCategories.item(i);
  }
  </code></pre>
  
  <p>But after that I am not getting the attributes of each item and the value associated to each tags under item.
  Like I want to read all the values like sdk_version , 01.00.001 ......</p>