Skip to content

List<Element> or Elements parsing support? #70

@ogartaganis

Description

@ogartaganis

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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions