Return a string containing the XML of this element and all its children with a starting indent of *indent* spaces.
(self, indent)
| 167 | return self._xml(indent=0) |
| 168 | |
| 169 | def _xml(self, indent): |
| 170 | """ |
| 171 | Return a string containing the XML of this element and all its |
| 172 | children with a starting indent of *indent* spaces. |
| 173 | """ |
| 174 | self._indent_str = " " * indent |
| 175 | xml = self._start_tag |
| 176 | for child in self._children: |
| 177 | xml += child._xml(indent + 2) |
| 178 | xml += self._end_tag |
| 179 | return xml |
| 180 | |
| 181 | @property |
| 182 | def _start_tag(self): |