A "mechanism by which the content of a document can be replaced with the DOM tree produced when loading a URL, or parsing a string."
An instance of the DocumentLS
interface
can be obtained by using binding-specific casting methods on an instance of the
Document
interface.
Java Binding:
package org.w3c.dom.loadSave;
import org.w3c.dom.Node;
import org.w3c.dom.DOMException;
public interface DocumentLS {
public boolean getAsync();
public void setAsync(boolean async);
public void abort();
public boolean load(String url);
public boolean loadXML(String source);
public String saveXML(Node node) throws DOMException;
}
IDL:
interface DocumentLS {
attribute boolean async;
void abort();
boolean load(in DOMString url);
boolean loadXML(in DOMString source);
DOMString saveXML(in Node node) raises(DOMException);
};