We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This:-
fn main() { let xml = r#"<?xml version="1.0"?> <bookshop> <books> <book> <title>The Illuminatus Trilogy</title> </book> </books> </bookshop1>"#; let result = parser::parse(xml); match result { Ok(_) => println!("parsed ok"), Err((loc, errors)) => println!("parse failed; location = {}, errors = {:?}", loc, errors), } }
will print:-
parse failed; location = 124, errors = [MismatchedElementEndName]
It would be nicer to give the line number and column number of the error, as all other XML parsers I've played with do.
The text was updated successfully, but these errors were encountered:
Yep. Even better would be to copy what my other parser does and calculate the line / column and show a snippet.
Sorry, something went wrong.
No branches or pull requests
This:-
will print:-
parse failed; location = 124, errors = [MismatchedElementEndName]
It would be nicer to give the line number and column number of the error, as all other XML parsers I've played with do.
The text was updated successfully, but these errors were encountered: