M README.md +3 -0
@@ 20,6 20,9 @@ following ways:
* DOCTYPE declarations are ignored; all other declarations (<! ... >)
are rejected except for CDATA, which is handled properly
+ * It follows from the above that only built-in named entities and
+ character entities are decoded (but those ones are)
+
* Comments appearing before or after the root element are ignored;
other comments are included in the parsed tree
M subxml.sml +1 -1
@@ 173,7 173,7 @@ structure SubXml :> SUBXML = struct
fun entity pos cc =
let fun entity' decoder pos text [] =
- error pos "Document ends during hex character entity"
+ error pos "Document ends during character entity"
| entity' decoder pos text (c :: rest) =
if c <> #";"
then entity' decoder (pos+1) (c :: text) rest