9899100101102103104105106107108
for ( int i=0; i<ns.getColumnCount(); ++i ) { String field = ns.getColumnName(i); xml.contentTag(Tokens.DATA, Tokens.KEY, field, n.getString(field)); } xml.end(); } else { xml.tag(Tokens.NODE, Tokens.ID, String.valueOf(n.getRow())); } }
130131132133134135136137138139140
continue; xml.contentTag(Tokens.DATA, Tokens.KEY, field, e.getString(field)); } xml.end(); } else { xml.tag(Tokens.EDGE, attr, vals, 3); } } xml.end();
135136137138139140141142143144145
xml.end(); } else { xml.tag(Tokens.EDGE, attr, vals, 3); } } xml.end(); // finish writing file xml.finish("</"+Tokens.GRAPHML+">\n"); }
7778798081828384858687
for ( int i=0; i<ns.getColumnCount(); ++i ) { vals[0] = ns.getColumnName(i); vals[1] = (String)TYPES.get(ns.getColumnType(i)); xml.tag(Tokens.DECL, attr, vals, 2); } xml.end(); xml.println(); // print the tree nodes attr[0] = Tokens.NAME;
108109110111112113114115116117118
} n = nextNode(n, xml); } // finish writing file xml.end(); xml.finish(); } /** * Find the next node in the depth first iteration, closing off open