David Thielen wrote:

public List selectNodes(String xpathExpression)selectNodes evaluates an
XPath expression and returns the result as a List of Node instances or
String instances depending on the XPath expression.

But this does not match the javadocs. So is the documentation incorrect - or
is it how it operates?

David,


IMHO, the documentation is inaccurate, and the implementation is fine. The implementation is also more in line with XPath 2.0, where you have the concept of sequence, which can contain simple types (strings, doubles, etc) and complex types (e.g. elements). So calling selectList() does pretty much the same thing as calling selectObject, except it puts the result of a selectObject() in a list/sequence when it is not already a list/sequence.

Alex



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to