Commit 64456468 authored by Alexander Gehrke's avatar Alexander Gehrke
Browse files

Add a saveAs method, requiring a filename instead of an open file

parent 1a20405f
......@@ -244,6 +244,12 @@ class PcGtsType(GeneratedsSuper):
else:
return False
 
def saveAs(self, outfile, level, namespaceprefix_='',
namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"',
name_='PcGtsType', pretty_print=True):
return self.export(open(outfile, 'w'), level, namespaceprefix_, namespacedef_, name_, pretty_print)
def export(self, outfile, level, namespaceprefix_='',
namespacedef_='xmlns:pc="http://schema.primaresearch.org/PAGE/gts/pagecontent/2019-07-15"',
name_='PcGtsType', pretty_print=True):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment