commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Psi Aushilfe3" <Aushilfe3....@prosieben.de>
Subject Re: .//
Date Thu, 07 Aug 2003 12:08:40 GMT
> JXPath cannot, by design, step upward from the root.  The rationale is


// does not step up, it does step down. //node means any node below the
currently selected one (root).

<blah>
	<one>
		<some />
		<two>
			<some />
		</two>
		<some />
	</one>
	<some />
</blah>

JXPathContext c = JXPathContext.newContext(blah);
C.getValue("//some");

This should select all four "some" nodes.

Mime
View raw message