You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling getText(xpath) returns the text of the first node that matches the xpath, calling getText(delimiter, xpath) returns a string that's a delimited list of node contents, and getTextList returns a List.
I've found that I don't ever use getText with delimiter; I always call getTextList & iterate thru the String[] result. So, is getText(delimiter, xpath) really necessary?
We can't define two getText's, one that returns a single String and another that returns a String[], so I think we're stuck having two differently-named methods for these. But maybe we should just deprecate the delimited-list version?
Let us know if you find it useful to you and it should be kept.
The text was updated successfully, but these errors were encountered:
Calling getText(xpath) returns the text of the first node that matches the xpath, calling getText(delimiter, xpath) returns a string that's a delimited list of node contents, and getTextList returns a List.
I've found that I don't ever use getText with delimiter; I always call getTextList & iterate thru the String[] result. So, is getText(delimiter, xpath) really necessary?
We can't define two getText's, one that returns a single String and another that returns a String[], so I think we're stuck having two differently-named methods for these. But maybe we should just deprecate the delimited-list version?
Let us know if you find it useful to you and it should be kept.
The text was updated successfully, but these errors were encountered: