Function: nxml-forward-element
nxml-forward-element is an interactive and byte-compiled function
defined in nxml-mode.el.gz.
Signature
(nxml-forward-element &optional ARG)
Documentation
Move forward over one element.
With ARG, do it that many times. Negative ARG means move backward.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-forward-element (&optional arg)
"Move forward over one element.
With ARG, do it that many times.
Negative ARG means move backward."
(interactive "^p")
(or arg (setq arg 1))
(if (< arg 0)
(nxml-backward-element (- arg))
(condition-case err
(while (and (> arg 0)
(< (point) (point-max)))
(goto-char
(or (nxml-scan-element-forward (nxml-token-before))
(error "No more elements")))
(setq arg (1- arg)))
(nxml-scan-error
(goto-char (cadr err))
(apply #'error (cddr err))))))