Function: soap-xml-get-attribute-or-nil1

soap-xml-get-attribute-or-nil1 is a byte-compiled function defined in soap-client.el.gz.

Signature

(soap-xml-get-attribute-or-nil1 NODE ATTRIBUTE)

Documentation

Return the NODE's ATTRIBUTE, or nil if it does not exist.

This is the same as xml-get-attribute-or-nil, but ATTRIBUTE can be tagged with a namespace tag.

Source Code

;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
(defun soap-xml-get-attribute-or-nil1 (node attribute)
  "Return the NODE's ATTRIBUTE, or nil if it does not exist.
This is the same as `xml-get-attribute-or-nil', but ATTRIBUTE can
be tagged with a namespace tag."
  (catch 'found
    (soap-with-local-xmlns node
      (dolist (a (xml-node-attributes node))
        ;; We use `ignore-errors' here because we want to silently skip
        ;; attributes for which we cannot convert them to a well-known name.
        (when (eq (ignore-errors (soap-l2wk (car a))) attribute)
          (throw 'found (cdr a)))))))