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 LSSerializer {
public DOMConfiguration getDomConfig();
public String getNewLine();
public void setNewLine(String newLine);
public LSSerializerFilter getFilter();
public void setFilter(LSSerializerFilter filter);
public boolean write(Node nodeArg, LSOutput destination) throws LSException;
public boolean writeToURI(Node nodeArg, String uri) throws LSException;
public String writeToString(Node node) throws DOMException, LSException;
}