Function: soap-encode-attributes

soap-encode-attributes is a byte-compiled function defined in soap-client.el.gz.

Signature

(soap-encode-attributes VALUE TYPE)

Documentation

Encode XML attributes for VALUE according to TYPE.

This is a generic function which determines the attribute encoder for the type and calls that specialized function to do the work.

Attributes are inserted in the current buffer at the current position.

Source Code

;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
;;;; SOAP type encoding

(defun soap-encode-attributes (value type)
  "Encode XML attributes for VALUE according to TYPE.
This is a generic function which determines the attribute encoder
for the type and calls that specialized function to do the work.

Attributes are inserted in the current buffer at the current
position."
  (let ((attribute-encoder (get (soap-type-of type) 'soap-attribute-encoder)))
    (cl-assert attribute-encoder nil
               "no soap-attribute-encoder for %s type" (soap-type-of type))
    (funcall attribute-encoder value type)))