Possible Duplicate:
Android: How to get values in under specific xml tags
Hi guys, I want to detect the parent tags of my XML file to download and rename the correct file. I have my code on this link.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you can select any node in your XML document, you can then use XPath’s
ancestoraxis to find all ancestors (see http://www.w3schools.com/xpath/xpath_axes.asp). Then test them, and if one doesn’t have its own ancestor then it’s your root element.