问题
How do I include this in my Android package? When I do:
import javax.xml.parsers.*;
import javax.xml.xpath.*;
It simply doesn't work? Do I have to put files into my JAVA project? Where?
回答1:
XPath expressions are not part of Android (yet). There have been several solutions, for example look at this blog. Haven't tested this myself yet.
来源:https://stackoverflow.com/questions/2250603/im-programming-an-android-application-i-want-to-use-xpath-to-parse-xml