def get(self):
<EOL>if self.outfile:<EOL><INDENT>if self.result in ['<STR_LIT:list>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>fd = open(self.outfile + '<STR_LIT>', '<STR_LIT:w>')<EOL>fd.write(str(self.data))<EOL><DEDENT>elif self.result == '<STR_LIT>':<EOL><INDENT>fd = open(self.outfile + '<STR_LIT>', '<STR_LIT:w>')<EOL>data = json.loads(self.data, object_pairs_hook=OrderedDict)<EOL>json.dump(data, fd)<EOL><DEDENT>elif self.result == '<STR_LIT>':<EOL><INDENT>fd = open(self.outfile + '<STR_LIT>', '<STR_LIT:w>')<EOL>root = ET.fromstring(self.data)<EOL>tree = ET.ElementTree(root)<EOL>tree.write(fd, encoding='<STR_LIT>')<EOL><DEDENT>fd.close()<EOL><DEDENT>else:<EOL><INDENT>return self.data<EOL><DEDENT>
Return form result