Function: xmltok-require-token
xmltok-require-token is a byte-compiled function defined in
xmltok.el.gz.
Signature
(xmltok-require-token &rest TYPES)
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/xmltok.el.gz
(defun xmltok-require-token (&rest types)
;; XXX Generate a more helpful error message
(while (and (not (let ((type (car types)))
(if (stringp (car types))
(string= (xmltok-current-token-string) type)
(eq type xmltok-type))))
(setq types (cdr types))))
(unless types
(when (and xmltok-type
(not (eq xmltok-type 'not-well-formed)))
(xmltok-add-error "Unexpected token"))
(xmltok-markup-declaration-parse-error))
(let ((region-type (xmltok-prolog-region-type (car types))))
(when region-type
(xmltok-add-prolog-region region-type
xmltok-start
(point)))))