Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
filmil opened this issue Apr 28, 2020 · 1 comment
Open

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

filmil opened this issue Apr 28, 2020 · 1 comment

Comments

@filmil
Copy link

filmil commented Apr 28, 2020

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).

@netvl
Copy link
Owner

netvl commented Apr 28, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants