write_topology(topology, path, encoding='utf-8', prettyprint=True)[source]

Write a topology object on an XML file

topology : Topology

The topology object to write

path : str

The file ob which the topology will be written

encoding : str, optional

The encoding of the target file

prettyprint : bool, optional

Indent the XML code in the output file