Function: nxml-scan-forward-within
nxml-scan-forward-within is a byte-compiled function defined in
nxml-mode.el.gz.
Signature
(nxml-scan-forward-within END)
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
(defun nxml-scan-forward-within (end)
(setq end (- end (nxml-end-delimiter-length xmltok-type)))
(when (<= end (point))
(error "Already at end of %s"
(nxml-token-type-friendly-name xmltok-type)))
(cond ((memq xmltok-type '(start-tag
empty-element
partial-start-tag
partial-empty-element))
(if (< (point) xmltok-name-end)
xmltok-name-end
(let ((att (nxml-find-following-attribute)))
(cond ((not att) end)
((and (xmltok-attribute-value-start att)
(<= (xmltok-attribute-value-start att)
(point)))
(nxml-scan-forward-in-attribute-value att))
((xmltok-attribute-value-end att)
(1+ (xmltok-attribute-value-end att)))
((save-excursion
(goto-char (xmltok-attribute-name-end att))
(looking-at "[ \t\r\n]*="))
(match-end 0))
(t (xmltok-attribute-name-end att))))))
((and (eq xmltok-type 'processing-instruction)
(< (point) xmltok-name-end))
xmltok-name-end)
(t end)))