Function: rng-document-element
rng-document-element is a byte-compiled function defined in
rng-loc.el.gz.
Signature
(rng-document-element)
Documentation
Return a list (NS PREFIX LOCAL-NAME).
NS is t if the document has a non-nil, but not otherwise known namespace.
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/rng-loc.el.gz
(defun rng-document-element ()
"Return a list (NS PREFIX LOCAL-NAME).
NS is t if the document has a non-nil, but not otherwise known namespace."
(or rng-cached-document-element
(setq rng-cached-document-element
(save-excursion
(save-restriction
(widen)
(goto-char (point-min))
(let (xmltok-dtd)
(xmltok-save
(xmltok-forward-prolog)
(xmltok-forward)
(when (memq xmltok-type '(start-tag
partial-start-tag
empty-element
partial-empty-element))
(list (rng-get-start-tag-namespace)
(xmltok-start-tag-prefix)
(xmltok-start-tag-local-name))))))))))