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
"Push" based XmlReader #49
Comments
Here's a rough not very well tested implementation - I'd insert this into XmlReader.dart: https://gist.github.com/dnfield/e176f1d604b21a67265896390c4ca6ee |
Looks interesting, but what about using generators? I think that would better fit the Dart language and directly map the callback code to the existing XmlReader implementation. I clearly haven't fully thought this through ... |
What would the generators produce though? An Iterable of what? Basically, the big advantage I'm looking for is the ability to more easily manage state (read until you hit this element, then pass the reader off to another class/function that will read through a subtree, then resume control, etc.). That's harder to manage in a SAX style scenario. |
I'll do a PR with a bit more implemented too |
I really appreciate the work you've done on this library, and I'm happy to see the SAX based interface.
I'm interested in a .NET style XmlReader interface, where, instead of callbacks on events, you tell the reader when you're ready to continue. I have some ideas around implementing this based on your SAX interface. Would you be interested in including such a thing here?
The text was updated successfully, but these errors were encountered: