(self, writer, indent="", addindent="", newl="")
| 22 | |
| 23 | |
| 24 | def _Replacement_writexml(self, writer, indent="", addindent="", newl=""): |
| 25 | # indent = current indentation |
| 26 | # addindent = indentation to add to higher levels |
| 27 | # newl = newline string |
| 28 | writer.write(indent + "<" + self.tagName) |
| 29 | |
| 30 | attrs = self._get_attributes() |
| 31 | a_names = sorted(attrs.keys()) |
| 32 | |
| 33 | for a_name in a_names: |
| 34 | writer.write(' %s="' % a_name) |
| 35 | _Replacement_write_data(writer, attrs[a_name].value, is_attrib=True) |
| 36 | writer.write('"') |
| 37 | if self.childNodes: |
| 38 | writer.write(">%s" % newl) |
| 39 | for node in self.childNodes: |
| 40 | node.writexml(writer, indent + addindent, addindent, newl) |
| 41 | writer.write(f"{indent}</{self.tagName}>{newl}") |
| 42 | else: |
| 43 | writer.write("/>%s" % newl) |
| 44 | |
| 45 | |
| 46 | class XmlFix: |
nothing calls this directly
no test coverage detected