Function: xmltok-forward-prolog
xmltok-forward-prolog is a byte-compiled function defined in
xmltok.el.gz.
Signature
(xmltok-forward-prolog)
Documentation
Move forward to the end of the XML prolog.
Returns a list of vectors [TYPE START END] where TYPE is a symbol and
START and END are integers giving the start and end of the region of
that type. TYPE can be one of xml-declaration,
xml-declaration-attribute-name, xml-declaration-attribute-value,
comment, processing-instruction-left, processing-instruction-right,
markup-declaration-open, markup-declaration-close,
internal-subset-open, internal-subset-close, hash-name, keyword,
literal, encoding-name.
Adds to xmltok-errors as appropriate.
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/xmltok.el.gz
(defun xmltok-forward-prolog ()
"Move forward to the end of the XML prolog.
Returns a list of vectors [TYPE START END] where TYPE is a symbol and
START and END are integers giving the start and end of the region of
that type. TYPE can be one of xml-declaration,
xml-declaration-attribute-name, xml-declaration-attribute-value,
comment, processing-instruction-left, processing-instruction-right,
markup-declaration-open, markup-declaration-close,
internal-subset-open, internal-subset-close, hash-name, keyword,
literal, encoding-name.
Adds to `xmltok-errors' as appropriate."
(let ((case-fold-search nil)
xmltok-start
xmltok-type
xmltok-prolog-regions
xmltok-contains-doctype
xmltok-internal-subset-start
xmltok-had-param-entity-ref
xmltok-standalone
xmltok-doctype-external-subset-flag
xmltok-markup-declaration-doctype-flag)
(setq xmltok-dtd xmltok-predefined-entity-alist)
(xmltok-scan-xml-declaration)
(xmltok-next-prolog-token)
(while (condition-case nil
(when (xmltok-parse-prolog-item)
(xmltok-next-prolog-token))
(xmltok-markup-declaration-parse-error
(xmltok-skip-markup-declaration))))
(when xmltok-internal-subset-start
(xmltok-add-error "No closing ]"
(1- xmltok-internal-subset-start)
xmltok-internal-subset-start))
(xmltok-parse-entities)
(nreverse xmltok-prolog-regions)))