Provides an API for serializing (writing) a DOM document out as a sequence of bytes onto a stream, file, socket, byte array, etc.
Java Binding:
package org.w3c.dom.ls;
public interface DOMWriter {
public void setFeature(String name, boolean state)
throws DOMException;
public boolean canSetFeature(String name, boolean state);
public boolean getFeature(String name) throws DOMException;
public String getEncoding();
public void setEncoding(String encoding);
public String getLastEncoding();
public String getNewLine();
public void setNewLine(String newLine);
public DOMErrorHandler getErrorHandler();
public void setErrorHandler(DOMErrorHandler errorHandler);
public boolean writeNode(OutputStream destination, Node wnode)
throws Exception;
public String writeToString(Node node) throws DOMException;
}
IDL:
interface DOMWriter {
void setFeature(in DOMString name, in boolean state)
raises(DOMException);
boolean canSetFeature(in DOMString name, in boolean state);
boolean getFeature(in DOMString name) raises(DOMException);
attribute DOMString encoding;
readonly attribute DOMString lastEncoding;
attribute DOMString newLine;
attribute DOMErrorHandler errorHandler;
boolean writeNode(in DOMOutputStream destination, in Node wnode)
raises(DOMSystemException);
DOMString writeToString(in Node wnode) raises(DOMException);
};