# HG changeset patch # User Mark A. Hershberger # Date 1101973641 0 # Node ID 99943ffd077489e50a6a0d6fb5ca9f516704e078 # Parent 9104d032d2fa994162ef6dda64f098814b5bfa47 Skip parameter entity declarations. diff -r 9104d032d2fa -r 99943ffd0774 lisp/xml.el --- a/lisp/xml.el Thu Dec 02 07:19:03 2004 +0000 +++ b/lisp/xml.el Thu Dec 02 07:47:21 2004 +0000 @@ -179,7 +179,7 @@ xml))) -(let* ((start-chars (concat ":[:alpha:]_")) +(let* ((start-chars (concat "[:alpha:]:_")) (name-chars (concat "-[:digit:]." start-chars)) ;;[3] S ::= (#x20 | #x9 | #xD | #xA)+ (whitespace "[ \t\n\r]")) @@ -652,6 +652,22 @@ (xml-parse-fragment xml-validating-parser parse-ns)))))))) + ;; skip parameter entity declarations + ((or (looking-at (concat "")) + (looking-at (concat ""))) + (goto-char (match-end 0))) + ;; skip parameter entities + ((looking-at (concat "%" xml-name-re ";")) + (goto-char (match-end 0))) (t (when xml-validating-parser (error "XML: (Validity) Invalid DTD item"))))))