Uli:
> i'll have a detailed look on it later when writing a test. just for now: i
> think the expression path better has to be constructed the following way
>
> expressionPath = expressionPath + "descendant-or-self::*|" +
> expressionPath + "descendant-or-self::*/text()";
>
> in order to select only text nodes below 'expressionPath'.
Right you are! But JXPath has some problems in handling some xpath
expressions of that style which I ran into. For example, some xpath
expressions of that style didn't return the text() nodes.
I'll do some testing and see if I can come up with an xpath expression that
works with JXPath yet still selects things below the "expressionPath".
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
|