Function: url-dav-process-DAV:supportedlock
url-dav-process-DAV:supportedlock is a byte-compiled function defined
in url-dav.el.gz.
Signature
(url-dav-process-DAV:supportedlock NODE)
Source Code
;; Defined in /usr/src/emacs/lisp/url/url-dav.el.gz
(defun url-dav-process-DAV:supportedlock (node)
;; DAV:supportedlock is a list of DAV:lockentry items.
;; DAV:lockentry in turn contains a DAV:lockscope and DAV:locktype.
;; The DAV:lockscope must have a single node beneath it, ditto for
;; DAV:locktype.
(let ((children (xml-node-children node))
(results nil)
scope type)
(while children
(when (and (not (stringp (car children)))
(eq (xml-node-name (car children)) 'DAV:lockentry))
(setq scope (assq 'DAV:lockscope (xml-node-children (car children)))
type (assq 'DAV:locktype (xml-node-children (car children))))
(when (and scope type)
(setq scope (xml-node-name (car (xml-node-children scope)))
type (xml-node-name (car (xml-node-children type))))
(push (cons type scope) results)))
(setq children (cdr children)))
results))