commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wannheden, Knut" <knut.wannhe...@paranor.ch>
Subject RE: [jxpath] JXPathContext#iterate(String) returns same object mu ltip le times
Date Thu, 05 Jun 2003 14:37:31 GMT
Dmitri,

> 
> No, you are absolutely right.  JXPath is guaranteed to returned unique
> pointers, but not unique objects.  If your graph has multiple paths to
> the same object, it may be returned repeatedly. The "//" axis has a
> protection built into it against simple loops like a->b->a 
> (you'll need
> to use the nigthly build to get that behavior).  Other than that there
> is really no cure other than specifying more explicit paths. 
> 

Thanks for the reply.

That sounds reasonable.  I'll get the latest version from CVS.  I'll try to
figure out if I can make JXPath understand my parent/child relationships,
which would hopefully let my use the XPath parent and child axis.

--
knut

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