Extracted at 2014-06-26.
pike.ida.liu.se
[Top]
Tools
Tools.XML

Method Tools.XML.indent_tree()


Method indent_tree

object indent_tree(object parent, void|int indent_text, void|int level)

Description

reformats an XML tree with TEXT elements so that when rendered with Parser.XML.Tree.Node.render_xml() the result is more palatable to human readers.

Note

this method will alter the tree you pass in by adding TEXT elements.