# HG changeset patch # User Mark A. Hershberger # Date 1101971943 0 # Node ID 9104d032d2fa994162ef6dda64f098814b5bfa47 # Parent d6515597c65a01cce6677b1b2e96215aad37734c Change existence of &; to not-well-formed. diff -r d6515597c65a -r 9104d032d2fa lisp/xml.el --- a/lisp/xml.el Thu Dec 02 06:55:05 2004 +0000 +++ b/lisp/xml.el Thu Dec 02 07:19:03 2004 +0000 @@ -601,7 +601,7 @@ (t (if xml-validating-parser (error "XML: (Validity) Invalid element type in the DTD")))) - + ;; rule [45]: the element declaration must be unique (if (and (assoc element dtd) xml-validating-parser) @@ -654,7 +654,7 @@ parse-ns)))))))) (t (when xml-validating-parser - (error "XML: (Validity) Invalid DTD item"))))) + (error "XML: (Validity) Invalid DTD item")))))) (if (looking-at "\\s-*]>") (goto-char (nth 1 (match-data))))) (nreverse dtd))) @@ -725,8 +725,7 @@ (entity (cdr entity)) ((eq (length this-part) 0) - (when xml-validating-parser - (error "XML: (Validity) No entity given"))) + (error "XML: (Not Well-Formed) No entity given")) (t (when xml-validating-parser (error "XML: (Validity) Undefined entity `%s'"