title: How to get attribute in XML
body: <p>Thanks for previous replies.</p>
  
  <p>I am parsing XML file using java(SAXParser), i am not sure how to parse the attribute value(meta data) using attribute value. I given two main categoy 
  <code>&lt;category name="XYZ" /&gt; &lt;category name="ABC"/&gt;</code>
  '</p>
  
  <pre><code>            &lt;subcategory name="" loc="C://program files" link="www.sample.com" parentnode="XYZ"/&gt;
              &lt;subcategory name="" loc="C://program files" link="http://" parentnode="ABC"/&gt;`
  </code></pre>
  
  <p>In sub category i have linked the main category with parentnode attribute. my question is i want to get all the attribute which is only contains particular parent attribute. (Ex)i want all attribute which is only resides in parent attribute "ABC". is this possible to get a value.</p>