Function: xml-get-children

xml-get-children is a byte-compiled function defined in xml.el.gz.

Signature

(xml-get-children NODE CHILD-NAME)

Documentation

Return the children of NODE whose tag is CHILD-NAME.

CHILD-NAME should match the value returned by xml-node-name.

Source Code

;; Defined in /usr/src/emacs/lisp/xml.el.gz
(defun xml-get-children (node child-name)
  "Return the children of NODE whose tag is CHILD-NAME.
CHILD-NAME should match the value returned by `xml-node-name'."
  (let ((match ()))
    (dolist (child (xml-node-children node))
      (if (and (listp child)
               (equal (xml-node-name child) child-name))
          (push child match)))
    (nreverse match)))