Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is getText with delimiter really necessary? #5

Open
JenniferSimonds opened this issue Feb 16, 2016 · 0 comments
Open

Is getText with delimiter really necessary? #5

JenniferSimonds opened this issue Feb 16, 2016 · 0 comments

Comments

@JenniferSimonds
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant