Loads the specified URL synchronously and returns the MaxXmlRequest. Throws an exception if the file cannot be loaded. See get for an asynchronous implementation.
Example:
try { const req = load(filename); cont root = req.getDocumentElement(); // Process XML DOM...} catch (e) { console.error(`Cannot load $filename`, e);} Copy
try { const req = load(filename); cont root = req.getDocumentElement(); // Process XML DOM...} catch (e) { console.error(`Cannot load $filename`, e);}
URL to get the data from.
Loads the specified URL synchronously and returns the MaxXmlRequest. Throws an exception if the file cannot be loaded. See get for an asynchronous implementation.
Example: