indent_xml

ucca.textutil.indent_xml(xml_as_string)[source]

Indents a string of XML-like objects.

This works only for units with no text or tail members, and only for strings whose leaves are written as <tag /> and not <tag></tag>. :param xml_as_string: XML string to indent :return: indented XML string