From: "Brain, Jim" <[EMAIL PROTECTED]>
> True, but the javadoc for selectObject says that I will either get a
String,
> Number, Node, or List of Nodes.  If there is only one item, why return the
> list?

Ah I understand your issue now. It just happens to return a List purely as
this is how Jaxen has worked up to now.

You're right, its probably better to only return a single Node if the XPath
only matches a single node. Either that or say in the Javadoc that it will
only return a scalar result (Boolean, Number, String) or a List of Nodes.

I don't have a strong opinion either way; which would you prefer?

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to