def create(self, outdir): el = etree.ElementTree(self.root) el.write(os.path.join(outdir, '%s.props' % self.name), encoding='utf-8', pretty_print=True)
def write(self, filepath): self.fill() tree = etree.ElementTree(self.root) tree.write(filepath, encoding='utf-8', pretty_print=True)
def write(self, path): tree = etree.ElementTree(self.root) tree.write(path, encoding='utf-8')