/fastxpathaccess

Just give me the xpath result

Primary LanguageJavaMIT LicenseMIT

fastXPathAccess Build Status Coverage Status Maven Central Download

Fast and easy xpath query tool.

Dependency

Available in Maven Central and Bintray's jcenter repositories.

Maven

<dependency>
  <groupId>io.github.amarcinkowski</groupId>
  <artifactId>fastxpathaccess</artifactId>
  <version>1.0.17</version>
</dependency>

Gradle

compile 'io.github.amarcinkowski:fastxpathaccess:1.0.17'

Usage

Based on http://www.w3schools.com/xml/xml_xpath.asp bookstore XML example.

Xpath Example

Path filepath = Paths.get("bookstore.xml");
Xpath.find(filepath, "/bookstore/book[1]/title/@lang");

Result

Xpath.find() returns String[] with values

License

Licensed under MIT License