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

List<Element> or Elements parsing support? #70

Open
ogartaganis opened this issue Dec 4, 2018 · 0 comments
Open

List<Element> or Elements parsing support? #70

ogartaganis opened this issue Dec 4, 2018 · 0 comments
Assignees

Comments

@ogartaganis
Copy link

I am having big trouble exctracting a list of Elements and I had to resort to parsing with Jsoup after parsing with Jspoon. What I've tried so far:

In terms of List, I get ClassCastException,
@selector("table") var tables: List? = null
whereas in Elements
@selector("table") var tables: Elements? = null
I get 0 elements.

I need that as I want to get (as probably guessed so far) a list of tables including their tags, much like what I would get if I did:

val tables = Jsoup.parse(incomingText).select("table")
for(table in tables)
println(table.outerHtml())

Please let me know if more clarification info is required!

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

2 participants