Using XPath on String in Android (JAVA)

前端 未结 2 1075
情深已故
情深已故 2021-01-16 08:41

I am looking for some examples of using xpath in Android? Or if anyone can share their experiences. I have been struggeling to make tail or head of this problem :-(

<
相关标签:
2条回答
  • 2021-01-16 09:03

    What version of the SDK are you using? XPath was introduced in SDK 8(2.2). If you aren't building against that version then the class doesn't exist.

    0 讨论(0)
  • 2021-01-16 09:08

    Rpond is correct:

    • javax.xml.xpath is introduced since API level 8 (Android 2.2).
    • Android 1.5. is only API Level 3.

    References

    • package javax.xml.xpath -- "Since: API Level 8"
      • Description -- with examples
    • Android API levels -- "Platform Version Android 1.5 - API Level 3"
    0 讨论(0)
提交回复
热议问题