writeDocument
Serializes the document to the specified output stream using the default settings.
#include "NativeInterface.h" int METHOD_CALL writeDocument ( OutputStream *outputStream, const unicode *encoding, int endian);
public void writeDocument ( java.io.OutputStream document, java.lang.String encoding)
throws java.io.IOException, java.io.UnsupportedEncodingException
A non-zero return value indicates success.
This is an overloaded method in Java. The writeDocument method can also write the contents to an XML writer.