libxml2/test/errors/ent_redecl.xml
Nick Wellnhofer ce0871e15c Only warn on invalid redeclarations of predefined entities
Downgrade the error message to a warning since the error was ignored,
anyway. Also print the name of redeclared entity. For a proper fix that
also shows filename and line number of the invalid redeclaration, we'd
have to

- pass the parser context to the entity functions somehow, or
- make these functions return distinct error codes.

Partial fix for #308.
2022-02-20 21:49:04 +01:00

5 lines
47 B
XML

<!DOCTYPE doc [
<!ENTITY lt '<'>
]>
<doc/>