Skip to content

Support SAX style event parser (not just DOM) ย #824

Closed
@burtonator

Description

Hear me out... I know that JSoup is mostly DOM oriented but I'd like to recommend that we consider adding an optional SAX feature.

This is partially related to this issue:

#758

but I would like to expand on a description.

Right now the TreeBuilder functionality implements the parsing we need however there is no way to listen to the parse as it happens.

We have some of our queries that are better / faster if they are just implemented together as the document is parsed (rather than CSS selectors).

This way we could just elide the searching during the parse to avoid then having to follow up by recursing into the tree.

Perhaps "progress" can be implemented in the same framework:

#656

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions