From 27720433ac57a33a78b219107a01c20e65092814 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Thu, 2 Dec 2004 07:19:03 +0000 Subject: [PATCH] Change existence of &; to not-well-formed. --- lisp/xml.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lisp/xml.el b/lisp/xml.el index cf1fd771d18..550ade8ab8f 100644 --- a/lisp/xml.el +++ b/lisp/xml.el @@ -601,7 +601,7 @@ This follows the rule [28] in the XML specifications." (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 @@ This follows the rule [28] in the XML specifications." 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 @@ This follows the rule [28] in the XML specifications." (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'" -- 2.39.5