hey guys ,
i want help to parse xml file for android.
i want to parse particular attributes like
<image size = small>url</image>
<image size=medium>url</image>
two image tag but i want to access image size = medium
so how could i do that?
I tried
Document doc = parser.getDomElement(xml); // getting DOM element
XPathFactory xPathfactory = XPathFactory.newInstance();
XPath xpath = xPathfactory.newXPath();
try {
expr = xpath.compile("//image[@size=\"medium\"]");
nl = (NodeList) expr.evaluate(doc, XPathConstants.NODESET);
but it not working on android newer version ICS and jellyBean
help me
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en