-
Notifications
You must be signed in to change notification settings - Fork 223
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
Event::Text seemingly returns only newlines. #713
Comments
If your XML looks like <page>
<tag>...</tag>
text
<page> then you've get exactly that result which your code does. Just after reading |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I must admit, I've found this library a bit confusing so I could just be off on how to approach this. I'm trying to parse a Wikipedia dump (with a separate parser), but I first need to grab the content between
<page>
tags to pass to the parser.This is what I have so far.
The
println!
in theOk(Event::Text(e))
only prints out"\n "
repeatedly. Am I misunderstanding the purpose of the event or how to use it, or is there a different way to grab the text between two tags? I did try to useread_to_end_into()
, but I couldn't understand how one turns theRange<usize>
into actual text.The text was updated successfully, but these errors were encountered: