* xml.el (xml-substitute-special): Don't die for undefined xml
entities.
+2005-05-26 Mark A. Hershberger <mah@everybody.org>
+
+ * xml.el (xml-substitute-special): Don't die for undefined xml
+ entities.
+
2005-05-26 Lute Kamstra <lute@gnu.org>
* arc-mode.el (archive-mode):
;;**
;;*******************************************************************
+(defconst xml-undefined-entity "?"
+ "What to substitute for undefined entities")
+
(defvar xml-entity-alist
'(("lt" . "<")
("gt" . ">")
((eq (length this-part) 0)
(error "XML: (Not Well-Formed) No entity given"))
(t
- (when xml-validating-parser
+ (if xml-validating-parser
(error "XML: (Validity) Undefined entity `%s'"
- this-part))))))
+ this-part)
+ xml-undefined-entity)))))
(cond ((null children)
;; FIXME: If we have an entity that expands into XML, this won't work.