You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
...until an EndElement corresponding 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.
The text was updated successfully, but these errors were encountered:
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:
StartElement
.EndElement
corresponding 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
(callednext_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.The text was updated successfully, but these errors were encountered: