requestXML

requestXML($uri as String) → Document

Emulates an XMLHTTPRequest, effectively returning an XML document object.

Arguments

 

$uri

String

The URI of the document to fetch

Result

Document

Details

This method creates a placeholder for a document object that can be used as an argument wherever a Document object is required by an API method, such as transformToDocument(). The use of such a placeholder allows Saxon-CE to determine whether to retrieve the document synchonously or asynchronously, depending on the context in which it is used.

Note: Typically, XML resources that are used as XSLT stylesheets are fetched synchronously, whilst those loaded as data are fetched asynchronously while the XSLT compiles.