CML

Codename: cml

Contents

CML format

Marvin is capable of importing and exporting files in the Chemical Markup Language. Special atom types are lost during export.

Import. The following CML2 standard tags are recognized:

Export options

The argument of MolConverter and the getMol/getM functions (of the applets and beans) is the format string. The format specification ("cml") and the option(s) are separated by a colon in the format string. CML export currently only has one special option which affects the compactness of the storage.

cml:... Basic options for aromatization and H atom adding/removal.
cml:A       Atom attributes are stored in arrays. For 2D molecules, only the x, y coordinates are stored. This is a more compact form of storage than the default (using <atom> tags).

Example CML file exported without options:

<?xml version="1.0" ?>
<cml>
<molecule title="Ethane" id="m1">
  <atomArray>
    <atom id="a1" elementType="C"
          x2="0.0" y2="0.0" />
    <atom id="a2" elementType="C"
          x2="0.0" y2="1.54" />
  </atomArray>
  <bondArray>
    <bond atomRefs2="a1 a2" order="1" />
  </bondArray>
</molecule>
</cml>

CML in other programs:

References