Is there a similar function to the python function lmxl.sax.saxify
[1] in java to generate SAX events from a DOM and fire them against a SAX ContentHandler.
The main intention is to convert a DOM object into a list of paragraphs.
given this html snippet
<p> Here is a text!
<ul><li>list1</li><li>list2</li></ul>
</p>
the output that I want is:
- 1st paragraph: Here is a text!
- 2nd paragraph: list1
- 3rd paragraph: list2