* @throws Exception
*/
public static Element molToCml(IMolecule mol, String name) throws Exception {
deAromatise(mol);
StringWriter output = new StringWriter();
CMLWriter cmlw = new CMLWriter(output);
cmlw.write(mol);
Document doc = new Builder().build(output.toString(), "/localhost");
Element e = (Element)doc.getRootElement();
Nodes n = e.query(".//bond/@order");
for(int i=0;i<n.size();i++) {
Attribute a = (Attribute)n.get(i);