A utility function for parsing XML formats is provided, along with an export to a generic XML format (using Content MathML).


Splits a tag (as used in elementtree) into a namespace and an element name part.



Returns a dict of all exporters available in this module.

class myokit.formats.xml.XMLExporter

This Exporter generates an XML file containing a model’s equations, encoded in Content MathML.

model(path, model, protocol=None)

Export the model to a generic xml document.


Optional method that returns a string containing information about this exporter, to be shown after the export is completed.

runnable(path, model, protocol=None, *args)

Exports a myokit.Model and optionally a myokit.Protocol to something that can be run or compiled.

The output will be stored in the directory path. A myokit.ExportError will be raised if any errors occur.


Returns True.


Returns True if this exporter supports export of a model and optional protocol to a runnable piece of code.