WebDAVTools.getXML

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);
}

 


WebDAVTools.getXML( uri : URL) : Object

Arguments

uri
URL. Location of the document

Return Value

Object
.locked (boolean) contains the lock status of the opened document. .responseXML (xmlDOM) contains the dom of the loaded document. .message (text) contains the error message while locking the document.