Function: xml-get-attribute-or-nil

xml-get-attribute-or-nil is a byte-compiled function defined in xml.el.gz.

Signature

(xml-get-attribute-or-nil NODE ATTRIBUTE)

Documentation

Get from NODE the value of ATTRIBUTE.

Return nil if the attribute was not found.

See also xml-get-attribute.

Source Code

;; Defined in /usr/src/emacs/lisp/xml.el.gz
(defun xml-get-attribute-or-nil (node attribute)
  "Get from NODE the value of ATTRIBUTE.
Return nil if the attribute was not found.

See also `xml-get-attribute'."
  (cdr (assoc attribute (xml-node-attributes node))))