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 DOMConfiguration getConfig();
public DOMWriterFilter getFilter();
public void setFilter(DOMWriterFilter filter);
public String getEncoding();
public void setEncoding(String encoding);
public String getNewLine();
public void setNewLine(String newLine);
public boolean writeNode(OutputStream destination, Node wnode)
throws Exception;
public String writeToString(Node node) throws DOMException;
}