xml-rs icon indicating copy to clipboard operation
xml-rs copied to clipboard

Would be nice to report the stream position for an emitted XmlEvent

Open filmil opened this issue 5 years ago • 1 comments

This would help the event processor orient itself in the input stream (perhaps it needs to output some error message that does not pertain to the syntax).

filmil avatar Apr 28 '20 01:04 filmil

At the moment, you can use the Position trait, which is implemented for EventReader. This, unfortunately, does prevent you from using the into_iter() interface.

In the new version of the API, I'll have to think about how to fit it in. Thanks!

netvl avatar Apr 28 '20 17:04 netvl