Function: soap-fetch-xml-from-file
soap-fetch-xml-from-file is a byte-compiled function defined in
soap-client.el.gz.
Signature
(soap-fetch-xml-from-file FILE WSDL)
Documentation
Load an XML document from FILE and return it.
The previously parsed file is read from WSDL.
Source Code
;; Defined in /usr/src/emacs/lisp/net/soap-client.el.gz
(defun soap-fetch-xml-from-file (file wsdl)
"Load an XML document from FILE and return it.
The previously parsed file is read from WSDL."
(let* ((current-file (soap-wsdl-current-file wsdl))
(expanded-file (expand-file-name file
(if current-file
(file-name-directory current-file)
default-directory))))
(setf (soap-wsdl-current-file wsdl) expanded-file)
(with-temp-buffer
(insert-file-contents expanded-file)
(car (xml-parse-region (point-min) (point-max))))))