writeNode(writer, rootNode, saveInvisible, true);
}
public void writeMapAsXml(final MapModel map, final Writer fileout, final Mode mode, final boolean saveInvisible,
final boolean forceFormat) throws IOException {
final TreeXmlWriter xmlWriter = new TreeXmlWriter(writeManager, fileout);
xmlWriter.setHint(Hint.MODE, mode);
if (forceFormat) {
xmlWriter.setHint(WriterHint.FORCE_FORMATTING);
}
final XMLElement xmlMap = new XMLElement("map");
setSaveInvisible(saveInvisible);
xmlWriter.addElement(map, xmlMap);
xmlWriter.flush();
fileout.close();
}