commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elliotte Harold <>
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
XML in a Nutshell 3rd Edition Just Published!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message