xml-validating-parser
parse-ns))))))))
(t
- (error "XML: (Validity) Invalid DTD item")))))
+ (when xml-validating-parser
+ (error "XML: (Validity) Invalid DTD item")))))
(if (looking-at "\\s-*]>")
(goto-char (nth 1 (match-data)))))
(nreverse dtd)))
(entity
(cdr entity))
((eq (length this-part) 0)
- (error "XML: (Validity) No entity given"))
+ (when xml-validating-parser
+ (error "XML: (Validity) No entity given")))
(t
- (if xml-validating-parser
+ (when xml-validating-parser
(error "XML: (Validity) Undefined entity `%s'"
this-part))))))