aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/xml.el7
1 files changed, 2 insertions, 5 deletions
diff --git a/lisp/xml.el b/lisp/xml.el
index dbd991f5583..61a79b37104 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -1,6 +1,6 @@
1;;; xml.el --- XML parser 1;;; xml.el --- XML parser
2 2
3;; Copyright (C) 2000, 2001, 2003 Free Software Foundation, Inc. 3;; Copyright (C) 2000, 01, 03, 2004 Free Software Foundation, Inc.
4 4
5;; Author: Emmanuel Briot <briot@gnat.com> 5;; Author: Emmanuel Briot <briot@gnat.com>
6;; Maintainer: Mark A. Hershberger <mah@everybody.org> 6;; Maintainer: Mark A. Hershberger <mah@everybody.org>
@@ -109,10 +109,7 @@ CHILD-NAME should be a lower case symbol."
109Return `nil' if the attribute was not found. 109Return `nil' if the attribute was not found.
110 110
111See also `xml-get-attribute'." 111See also `xml-get-attribute'."
112 (when (xml-node-attributes node) 112 (cdr (assoc attribute (xml-node-attributes node))))
113 (let ((value (assoc attribute (xml-node-attributes node))))
114 (when value
115 (cdr value)))))
116 113
117(defsubst xml-get-attribute (node attribute) 114(defsubst xml-get-attribute (node attribute)
118 "Get from NODE the value of ATTRIBUTE. 115 "Get from NODE the value of ATTRIBUTE.