commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elliotte Harold <elh...@metalab.unc.edu>
Subject JXPath cycles
Date Wed, 04 May 2005 13:05:00 GMT
How does Commons JXPath handle cycles when querying JavaBeans? For 
instance suppose bean A has a property X whose value is a reference to 
bean B. Suppose also bean B has a property Y whose value is a reference 
to bean A. Then suppose, starting with bean A as the context node, we 
make the query .//*. What happens and why? Is it an infinite loop?

This is a simple case, but clearly the cycle could be longer than length 2.

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message