[jdom-commits] CVS Update: jdom-contrib/src/java/org/jdom/contrib/helpers

nobody nobody at chimbo.servlets.com
Tue Apr 29 17:54:38 PDT 2003


****************************************
Date:   Tue Apr 29, 2003 @18:54:38 MDT
Author: 

Update of /home/cvs/jdom-contrib/src/java/org/jdom/contrib/helpers
In directory chimbo:/tmp/cvs-serv9492

Added Files:
XPathHelper.java
Log Message:
New contrib helper class from Laurent:

Attached is a proposal for adding a new helper class:
org.jdom.contrib.helpers.XPathHelper.
This class provides utility methods to build XPath expressions to select a
given JDOM node.
The generated XPaths can be evaluated using JDOM org.jdom.xpath.XPath. Direct
use of Jaxen requires redefining the prefix-URI mapping for namespaces (i.e.
calling XPath.addNamespace() for each namespace in the path) as Jaxen does not
perform context mapping.

As always with such automatically generated expressions, the built XPaths rely
on the document structure and are thus only valid as long as this structure
does not change.

-jh-
===================================================================
File: XPathHelper.java 	Status: Up-to-date

   Working revision:	1.1	Wed Apr 30 00:54:37 2003
   Repository revision:	1.1	/home/cvs/jdom-contrib/src/java/org/jdom/contrib/helpers/XPathHelper.java,v

   Existing Tags:
	No Tags Exist




More information about the jdom-commits mailing list