Difference between revisions of "Chemical Markup Language"

From Open Babel
Jump to: navigation, search
m (Added to format category)
Line 1: Line 1:
 
{{Format|
 
{{Format|
|extensions=cml
+
|extensions=cml
|mime=chemical/x-cml
+
|mime=chemical/x-cml
|url=http://wwmm.ch.cam.ac.uk/moin/ChemicalMarkupLanguage
+
|url=http://wwmm.ch.cam.ac.uk/moin/ChemicalMarkupLanguage
|notes=
+
|import=Yes
|options=
+
|export=Yes
 +
|version=All
 +
|dimensionality=3D
 +
|options=
 
<pre>
 
<pre>
XML format. This implementation uses libxml2.
+
XML format. This implementation uses libxml2.
 
  Write options for CML: -x[flags] (e.g. -x1ac)
 
  Write options for CML: -x[flags] (e.g. -x1ac)
 
  1  output CML1 (rather than CML2)
 
  1  output CML1 (rather than CML2)
Line 13: Line 16:
 
  m  output metadata
 
  m  output metadata
 
  x  omit XML and namespace declarations
 
  x  omit XML and namespace declarations
  N add namespace prefix to elements
+
  N<prefix> add namespace prefix to elements
 
</pre>
 
</pre>
 
}}
 
}}

Revision as of 09:26, 30 January 2006

Filename Extensions cml
Chemical MIME Type chemical/x-cml
Specification URL http://wwmm.ch.cam.ac.uk/moin/ChemicalMarkupLanguage
Import Yes
Export Yes
Open Babel Version All

Options

 XML format. This implementation uses libxml2.
 Write options for CML: -x[flags] (e.g. -x1ac)
 1  output CML1 (rather than CML2)
 a  output array format for atoms and bonds
 h  use hydrogenCount for all hydrogens
 m  output metadata
 x  omit XML and namespace declarations
 N<prefix> add namespace prefix to elements

Additional Comments

The XML formats require the XML text to be well formed but generally interpret it fairly tolerantly. Unrecognised elements and attributes are ignored and there are rather few error messages when any required structures are not found.