// first, check the schemas to ensure GraphML compatibility
Schema ns = graph.getNodeTable().getSchema();
checkTreeMLSchema(ns);
XMLWriter xml = new XMLWriter(new PrintWriter(os));
xml.begin();
xml.comment("prefuse TreeML Writer | "
+ new Date(System.currentTimeMillis()));
// print the tree contents