Function load

Loads the specified URL synchronously and returns the . Throws an exception if the file cannot be loaded. See Utils#get for an asynchronous implementation.

Example:

try
{
let req = mxUtils.load(filename);
let root = req.getDocumentElement();
// Process XML DOM...
}
catch (ex)
{
mxUtils.alert('Cannot load '+filename+': '+ex);
}