rootState = node.getState();
    public boolean write(INode node) throws IOException {        convertedNodes = new Vector();        if (explicitEncoding == null) {            writeln("<?xml version=\"1.0\"?>");        } else {            writeln("<?xml version=\"1.0\" encoding=\"" + explicitEncoding + "\"?>");        }        // writeln ("<!-- printed by helma object publisher     -->");        // writeln ("<!-- created " + (new Date()).toString() + " -->" );        write("<xmlroot xmlns:hop=\"");        write(NAMESPACE);        writeln("\">");        write(node, null, null, 0);        writeln("</xmlroot>");        convertedNodes = null;        return true;    }