boolean result = writer.write((Node) node);
writer.write((Node) node);
    public void saveNode(ITransaction txn, String kstr, INode node)                  throws IOException {        XmlWriter writer = null;        File file = new File(dbBaseDir, kstr + ".xml");        if (encoding != null) {            writer = new XmlWriter(file, encoding);        } else {            writer = new XmlWriter(file);        }        writer.setMaxLevels(1);        boolean result = writer.write((Node) node);        writer.close();    }