4

I want to parse an xml file using xpath in android, any idea how to do that??

I hope you get the point. Thank you ;)

3
  • I got your point but for the correctness, we can't "parse an XML file using XPath" but to use an XML parser to do that. And yet, we can only extract nodes' data using XPath :) Commented Aug 20, 2010 at 15:36
  • XPath is a hosted language. So, what language is going to host your XPath expression? Commented Aug 20, 2010 at 17:37
  • possible duplicate of I'm programming an Android application. I want to use XPath to parse XML Commented Mar 3, 2012 at 19:25

3 Answers 3

1

Did you try the samples given in this post

http://brainflush.wordpress.com/2009/05/19/the-force-unleashed-xmlxpath-on-android-using-dom4j-and-jaxen/

Sign up to request clarification or add additional context in comments.

Comments

1

It seems that as of 2.2 it's now part of the language, so no need for the other external libs... http://developer.android.com/reference/javax/xml/xpath/package-summary.html

Comments

0

This looks to have been asked and answered before I'm programming an Android application. I want to use XPath to parse XML. Hopefully that link to the blog post helps.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.