forked from netvl/xml-rs
-
-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
As we start migrating projects in our code base from other XML parsers to xml-rs, we hit a repeating use-case based on processing a sub-tree in the XML structure:
- Read a
StartElement. - Continue calling EventReader.next and processing the results...
- ...until an
EndElementcorresponding to the start one from step 1. is found.
There is EventReader.skip which performs steps 1. and 3., but not 2.
Would people on this project be interested in getting a variant of next (called next_in_subtree or similar) which would stop providing results once it reaches the corresponding end tag? I'm happy to contribute the code, but wanted to check ahead if that would be welcome.
kornelski
Metadata
Metadata
Assignees
Labels
No labels