Function: soap-xs-parse-attribute
soap-xs-parse-attribute is a byte-compiled function defined in
soap-client.el.gz.
Signature
(soap-xs-parse-attribute NODE)
Documentation
Construct a soap-xs-attribute from NODE.
Source Code
;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
(defun soap-xs-parse-attribute (node)
"Construct a `soap-xs-attribute' from NODE."
(cl-assert (eq (soap-l2wk (xml-node-name node)) 'xsd:attribute)
"expecting xsd:attribute, got %s" (soap-l2wk (xml-node-name node)))
(let* ((name (xml-get-attribute-or-nil node 'name))
(type (soap-l2fq (xml-get-attribute-or-nil node 'type)))
(default (xml-get-attribute-or-nil node 'fixed))
(attribute (xml-get-attribute-or-nil node 'ref))
(ref (when attribute (soap-l2fq attribute))))
(unless (or type ref)
(setq type (soap-xs-parse-simple-type
(soap-xml-node-find-matching-child
node '(xsd:restriction xsd:list xsd:union)))))
(make-soap-xs-attribute
:name name :type type :default default :reference ref)))