def to_xml(self): indent_tree(self.element) return ElementTree.tostring(self.element, 'utf-8')
def build_request_xml(self): self.element = self.build_element_tree() indent_tree(self.element) request_xml = ElementTree.tostring(self.element, "utf-8") request_xml = self.build_request_xml_headers() + "\n" + request_xml return request_xml