Function: nxml-down-element
nxml-down-element is an interactive and byte-compiled function defined
in nxml-mode.el.gz.
Signature
(nxml-down-element &optional ARG)
Documentation
Move forward down into the content of an element.
With ARG, do this that many times. Negative ARG means move backward but still down.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-down-element (&optional arg)
"Move forward down into the content of an element.
With ARG, do this that many times.
Negative ARG means move backward but still down."
(interactive "^p")
(or arg (setq arg 1))
(if (< arg 0)
(nxml-backward-down-element (- arg))
(while (> arg 0)
(goto-char
(let ((token-end (nxml-token-after)))
(save-excursion
(goto-char token-end)
(while (progn
(when (memq xmltok-type '(nil end-tag partial-end-tag))
(error "No following start-tags in this element"))
(not (memq xmltok-type '(start-tag partial-start-tag))))
(nxml-tokenize-forward))
(point))))
(setq arg (1- arg)))))