Function: soap-validate-xs-basic-type

soap-validate-xs-basic-type is a byte-compiled function defined in soap-client.el.gz.

Signature

(soap-validate-xs-basic-type VALUE TYPE)

Documentation

Validate VALUE against the basic type TYPE.

Source Code

;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
(defun soap-validate-xs-basic-type (value type)
  "Validate VALUE against the basic type TYPE."
  (let* ((kind (soap-xs-basic-type-kind type)))
    (cl-case kind
      ((anyType Array byte[])
       value)
      (t
       (let ((convert (get kind 'rng-xsd-convert)))
         (if convert
             (if (rng-dt-make-value convert value)
                 value
               (error "Invalid %s: %s" (symbol-name kind) value))
           (error "Don't know how to convert %s" kind)))))))