We're missing a convenient, standardized way to traverse jsoup DOM trees using Java's Iterator and Stream…
We're missing a convenient, standardized way to traverse jsoup DOM trees using Java's Iterator and Stream…: a task in LegoFlow-SWE (Harbor dataset). Both streams must respect document order (parent first, then children depth‑first). For example, given: html <div id=1 <p One<p Two</div <div id=2 <p…
The task
Both streams must respect **document order** (parent first, then children depth‑first). For example, given: ```html <div id=1><p>One<p>Two</div><div id=2><p>Three<p>Four</div> ``` calling `document.nodeStream().map(n -> n.nodeName()).collect(Collectors.joining(";"))` should produce: ```…
Part of Lego-X/LegoFlow-SWE.