Next / Previous / Contents / Shipman's homepage

8.2. FlowTree.write(): Serialize the document

The pretty_print option indents the output canonically without changing the semantics.

fohelpers.py
# - - -   F l o w T r e e . w r i t e

    def write(self, outFile):
        '''Serialize as XML.
        '''
        self.doc.write(outFile)