Marvin Documents

Codename: mrv

Contents

Marvin Documents format

An XML based format that is capable to store graphics objects (lines, text boxes, etc.) and molecule objects.

The following tags are recognized:

Export options

The argument of MolConverter, MolExporter and the getMol/getM functions (of the applets and beans) is the format string. The format specification ("mrv") is followed by ":" and the selected option(s) for mrv export.

mrv:...

Basic options for aromatization and H atom adding/removal.

mrv:S      

Save selection. If set then the mrv output will contain which atoms and graphical objects are in seleted state.

mrv:P

Create human readable output: put new xml elements in new lines and indent for embedded elements.

Example of MRV file exported without options:

<?xml version="1.0"?><cml>
<MDocument><MChemicalStruct><molecule title="Ethane" molID="m1"><atomArray atomID="a1 a2" elementType="C C" x2="0.0 0.0" y2="0.0 1.54"></atomArray><bondArray><bond atomRefs2="a1 a2" order="1"></bond></bondArray></molecule></MChemicalStruct><MRectangle id="o2"><MPoint x="-6.599999904632568" y="1.7050000429153442"></MPoint><MPoint x="-2.640000104904175" y="1.7050000429153442"></MPoint><MPoint x="-2.640000104904175" y="-0.16500000655651093"></MPoint><MPoint x="-6.599999904632568" y="-0.16500000655651093"></MPoint></MRectangle></MDocument>
</cml>

Example of MRV file exported with option "S":

<?xml version="1.0"?><cml>
<MDocument><MChemicalStruct><molecule title="Ethane" molID="m1"><atomArray atomID="a1 a2" elementType="C C" isSelected="true true" x2="0.0 0.0" y2="0.0 1.54"></atomArray><bondArray><bond atomRefs2="a1 a2" order="1"></bond></bondArray></molecule></MChemicalStruct><MRectangle id="o2" isSelected="true"><MPoint x="-6.599999904632568" y="1.7050000429153442"></MPoint><MPoint x="-2.640000104904175" y="1.7050000429153442"></MPoint><MPoint x="-2.640000104904175" y="-0.16500000655651093"></MPoint><MPoint x="-6.599999904632568" y="-0.16500000655651093"></MPoint></MRectangle></MDocument>
</cml>

Example of MRV file exported with option "P":

<?xml version="1.0"?>
<cml>
<MDocument>
  <MChemicalStruct>
    <molecule title="Ethane" molID="m1">
      <atomArray atomID="a1 a2" elementType="C C" x2="0.0 0.0" y2="0.0 1.54"/>
      <bondArray>
        <bond atomRefs2="a1 a2" order="1"/>
      </bondArray>
    </molecule>
  </MChemicalStruct>
  <MRectangle id="o2">
    <MPoint x="-6.599999904632568" y="1.7050000429153442"/>
    <MPoint x="-2.640000104904175" y="1.7050000429153442"/>
    <MPoint x="-2.640000104904175" y="-0.16500000655651093"/>
    <MPoint x="-6.599999904632568" y="-0.16500000655651093"/>
  </MRectangle>
</MDocument>
</cml>

Example of MRV file exported with options "SP":

<?xml version="1.0"?>
<cml>
<MDocument>
  <MChemicalStruct>
    <molecule title="Ethane" molID="m1">
      <atomArray atomID="a1 a2" elementType="C C" isSelected="true true" x2="0.0 0.0" y2="0.0 1.54"/>
      <bondArray>
        <bond atomRefs2="a1 a2" order="1"/>
      </bondArray>
    </molecule>
  </MChemicalStruct>
  <MRectangle id="o2" isSelected="true">
    <MPoint x="-6.599999904632568" y="1.7050000429153442"/>
    <MPoint x="-2.640000104904175" y="1.7050000429153442"/>
    <MPoint x="-2.640000104904175" y="-0.16500000655651093"/>
    <MPoint x="-6.599999904632568" y="-0.16500000655651093"/>
  </MRectangle>
</MDocument>
</cml>