mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-15 23:24:06 +03:00
e0854c3f83
- SAX.c tree.c debugXML.c: fixed bogus behaviour when an undeclared namespace prefix was used, added a warning. Cleaned up support w.r.t. entities, spilling out a warning and being pedantic on lookups. - test/warning/ent9 : added testcase for previous example. - TODO: updated - parserInternals.h parser.c: changed the way names are parsed now allow infinite size and decrease penalty for normal use - parser.c: Started a big cleanup/check of the parser code, fixed some of the most tortuous entity code, spotted code unused anymore - test/*: added tests for very long names and related nasty things. Daniel
8 lines
200 B
XML
8 lines
200 B
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE EXAMPLE SYSTEM "example.dtd" [
|
|
<!ENTITY xml "<prefix:node>prefix is indeclared here</prefix:node>">
|
|
]>
|
|
<EXAMPLE xmlns:prefix="http://example.com">
|
|
&xml;
|
|
</EXAMPLE>
|