Registry / utility / commons-jxpath

commons-jxpath

JSON →
library1.4.0javamavenunverified

Commons JXPath implements XPath 1.0 for navigating and manipulating Java object graphs and XML documents.

<dependency> <groupId>commons-jxpath</groupId> <artifactId>commons-jxpath</artifactId> <version>1.4.0</version> </dependency>
INSTALL
IMPORT
SIG · COMMONS-JXPATH
C
commons-jxpath
utilityjavav1.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JXPathContext
org.apache.commons.jxpath.JXPathContext

Use JXPath to evaluate an XPath expression on a Java object.

import org.apache.commons.jxpath.JXPathContext; class Person { public String getName() { return "Alice"; } } Person person = new Person(); JXPathContext context = JXPathContext.newContext(person); String name = (String) context.getValue("name");
Debug
Known issues
gotchaJXPath does not support XPath 2.0 or later; only XPath 1.0 expressions are valid.
fix
Use only XPath 1.0 syntax; avoid functions like matches() or replace().
affects: *
Upgrade
Version history
1.4.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
commons-jxpath — mvn dependency:get commons-jxpath · libregistry