-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Fix parser when not replacing entities and treating char references as entities #176
Conversation
Without the previous fix, the local name returned for the entity is foo instead of oelig
@gnodet Could you explain the problem in bit more detail (unless there's issue matching PR that has it)? |
So my understanding is that:
However, there are a few combinations that do not work well when external entities or char entities are found... |
Ah ok, thank you. That makes sense. So |
It's actually worse than that. It can cause wrong data to be returned when using And yes, |
@gnodet Apologies for very slow follow up here. I'd be happy to merge this now. But just one minor thing: if I haven't gotten CLA from you for Woodstox, I'd need it from: https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf (yes, it's under Jackson repo but we use same CLA for Woodstox too). Thank you again! EDIT: note, I originally indicated |
Quick note wrt ^^^ -- CLA actually needs to go to |
Resent to the correct address. |
The problem is especially visible when configuring woodstox with round-tripping.
In this mode, char references and entities are not properly reported.