Documentation Center

WebDAVTools.getXML

Description

Opens the document for reading and puts a write lock (if possible) on the document.

This is an example how to override the basic loadXML function in Xopus with the WebDav version. 

IO.setLoadXMLFunction(loadAndLock);

function loadAndLock(uri)
{
  var lockObj = WebDAVTools.getXML(uri);  
  if (lockObj.locked == false)    
    alert(lockObj.message);    

  return(lockObj.responseXML);
}

Syntax

WebDAVTools .getXML (uri : URL) : Object

Arguments

uri
URL. Location of the document

Return Value

Object. The .locked property (Boolean) contains the lock status of the opened document. The .responseXMLproperty (xmlDOM) contains the DOM of the loaded document. The .messageproperty (String) contains the error message while locking the document.