Fast and easy xpath query tool.
Available in Maven Central and Bintray's jcenter repositories.
<dependency>
<groupId>io.github.amarcinkowski</groupId>
<artifactId>fastxpathaccess</artifactId>
<version>1.0.17</version>
</dependency>
compile 'io.github.amarcinkowski:fastxpathaccess:1.0.17'
Based on http://www.w3schools.com/xml/xml_xpath.asp bookstore XML example.
Path filepath = Paths.get("bookstore.xml");
Xpath.find(filepath, "/bookstore/book[1]/title/@lang");
Xpath.find()
returns String[]
with values
Licensed under MIT License