comparison lisp/xml.el @ 53384:6eee911caf68

(xml-get-attribute-or-nil): Doc fix.
author Eli Zaretskii <eliz@is.elta.co.il>
date Mon, 29 Dec 2003 12:58:57 +0000
parents e4e98d69d87a
children 586ffda6e9f9
comparison
equal deleted inserted replaced
53383:503b1160745f 53384:6eee911caf68
104 (push child match)))) 104 (push child match))))
105 (nreverse match))) 105 (nreverse match)))
106 106
107 (defun xml-get-attribute-or-nil (node attribute) 107 (defun xml-get-attribute-or-nil (node attribute)
108 "Get from NODE the value of ATTRIBUTE. 108 "Get from NODE the value of ATTRIBUTE.
109 nil is returned if the attribute was not found. 109 Return `nil' if the attribute was not found.
110 110
111 See also `xml-get-attribute'." 111 See also `xml-get-attribute'."
112 (when (xml-node-attributes node) 112 (when (xml-node-attributes node)
113 (let ((value (assoc attribute (xml-node-attributes node)))) 113 (let ((value (assoc attribute (xml-node-attributes node))))
114 (when value 114 (when value