In the javadocs, the Node method, selectNodes, says this:

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.

What is the discerning factor on whether a list of Nodes or Strings gets
returned? I couldn't easily find anything in the xml spec stating what the
difference was. In my application, I have a xpathExpression that would
select a single node, or using predicates, select a list. Also, would this
method every return the empty list for other than an xpathExpression that
didn't match any nodes in the document?

Thanx
steve

Stephen C. Upton

The Mitre Corporation
2907 W. Bay to Bay Blvd, Ste. 303
Tampa, FL 33629
Office: 813-831-5535
HomeOffice: 352-684-1353


For information about the annual Genetic and Evolutionary Computation
Conference (GECCO) (which includes the annual Genetic Programming
Conference) to be held in Seattle on June 26-30, 2004 (Saturday -
Wednesday), visit  http://www.isgec.org/gecco-2004/

For information about the Military and Security Applications of Evolutionary
Computation workshop (part of GECCO 2004) to be held in Seattle on June 26,
2004 (Saturday), see the workshop pages at
http://www-illigal.ge.uiuc.edu/msaec2004/






-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to