Thanks for previous replies.
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
<category name="XYZ" /> <category name="ABC"/>
‘
<subcategory name="" loc="C://program files" link="www.sample.com" parentnode="XYZ"/>
<subcategory name="" loc="C://program files" link="http://" parentnode="ABC"/>`
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.
Does the code below is solution for your problem?
XML
JAVA
}
I’ve based on this article