netvl / xml-rs

An XML library in Rust
MIT License
459 stars 110 forks source link

reader: add EventReader::skip() convenience function to skip subtrees #212

Closed tp-m closed 1 year ago

tp-m commented 2 years ago

Can be useful for code that reads nested element trees in various places and wants to skip known or unknown elements that are not of interest. This way it doesn't need to maintain depth state and skip manually in all those places.