commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jun Ouyang <>
Subject Re: [JXPath] Can JXPath help me with processing collection based tree?
Date Fri, 02 Nov 2012 16:59:18 GMT
Sorry I am on transit right now so i cant give u a full and proper.respond.
But i think you can create your own jxpath function and invoke it to match
your need. In this case the function shall check if names are equal?
On Nov 2, 2012 9:47 AM, "we9" <> wrote:

> I started to write some methods which process tree structure. The queries
> are based on XPath. And now, I discovered JXPath. I was reading user-guide,
> but I didn't find what I want.
> I must be sure that there is no posibility to do this with JXPath.
> I have the following interfaces:
> interface IMyNode
> interface IMyNodeAggregate<C extends IMyNode> implements Collection<C>,
> IMyNode
> I want to pass some root (instance of IMyAggregate) and using XPath
> notation (eg. /nodeName1//nodeName2/**nodeName3) get proper IMyNode
> instances. Name of IMyNode is avaliable by calling
> myNode.someService().getName() so maybe some interface JXPath should be
> implemented?
> Please answer me if JXPath can help me?
> Thank you in advance,
> Kamil
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@commons.**<>
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message