Function: soap-decode-xs-simple-type

soap-decode-xs-simple-type is a byte-compiled function defined in soap-client.el.gz.

Signature

(soap-decode-xs-simple-type TYPE NODE)

Documentation

Use TYPE, a soap-xs-simple-type, to decode the contents of NODE.

A LISP value is returned based on the contents of NODE and the type-info stored in TYPE.

This is a specialization of soap-decode-type for soap-xs-simple-type objects.

Source Code

;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
(defun soap-decode-xs-simple-type (type node)
  "Use TYPE, a `soap-xs-simple-type', to decode the contents of NODE.
A LISP value is returned based on the contents of NODE and the
type-info stored in TYPE.

This is a specialization of `soap-decode-type' for
`soap-xs-simple-type' objects."
  (if (soap-xs-simple-type-is-list type)
      ;; Technically, we could construct fake XML NODEs and pass them to
      ;; soap-decode-value...
      (split-string (car (xml-node-children node)))
    (let ((value (soap-decode-type (soap-xs-simple-type-base type) node)))
      (soap-validate-xs-simple-type value type))))