Function: nxml-validate-error-position
nxml-validate-error-position is a byte-compiled function defined in
nxml-parse.el.gz.
Signature
(nxml-validate-error-position LOCATION TEXT-POS TAG)
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-parse.el.gz
(defun nxml-validate-error-position (location text-pos tag)
(cond ((null location) xmltok-start)
((eq location 'text) text-pos)
((eq location 'tag-close)
(and tag (- (point) (if (eq xmltok-type 'empty-element ) 2 1))))
((consp location)
(let ((att (nth (cdr location) xmltok-attributes)))
(when (not att)
(setq att (nth (- (cdr location) (length xmltok-attributes))
xmltok-namespace-attributes)))
(cond ((not att))
((eq (car location) 'attribute-name)
(xmltok-attribute-name-start att))
((eq (car location) 'attribute-value)
(xmltok-attribute-value-start att)))))))