Functions | |
def | auto_indent |
def | auto_space |
def | contains_only_text |
def | foreach_tree |
def | next_non_text_sibling |
def | strip_comment_whitespace |
def | strip_comments_completely |
def | strip_indent |
def | strip_text_completely |
def | strip_text_whitespace |
Variables | |
tuple | args = parser.parse_args() |
tuple | dom = minidom.parseString(text) |
tuple | f = open(args.infile[0],'r') |
tuple | parser = argparse.ArgumentParser(description="Format XML") |
tuple | text = f.read() |
def xmlpretty.auto_indent | ( | doc, | |
node, | |||
level | |||
) |
Definition at line 56 of file xmlpretty.py.
def xmlpretty.auto_space | ( | doc, | |
node, | |||
level | |||
) |
Definition at line 68 of file xmlpretty.py.
def xmlpretty.contains_only_text | ( | node | ) |
Definition at line 19 of file xmlpretty.py.
def xmlpretty.foreach_tree | ( | doc, | |
root, | |||
func, | |||
level = 0 |
|||
) |
Definition at line 26 of file xmlpretty.py.
def xmlpretty.next_non_text_sibling | ( | node | ) |
Definition at line 62 of file xmlpretty.py.
def xmlpretty.strip_comment_whitespace | ( | doc, | |
node, | |||
level | |||
) |
Definition at line 38 of file xmlpretty.py.
def xmlpretty.strip_comments_completely | ( | doc, | |
node, | |||
level | |||
) |
Definition at line 42 of file xmlpretty.py.
def xmlpretty.strip_indent | ( | doc, | |
node, | |||
level | |||
) |
Definition at line 33 of file xmlpretty.py.
def xmlpretty.strip_text_completely | ( | doc, | |
node, | |||
level | |||
) |
Definition at line 51 of file xmlpretty.py.
def xmlpretty.strip_text_whitespace | ( | doc, | |
node, | |||
level | |||
) |
Definition at line 47 of file xmlpretty.py.
tuple xmlpretty::args = parser.parse_args() |
Definition at line 11 of file xmlpretty.py.
tuple xmlpretty::dom = minidom.parseString(text) |
Definition at line 17 of file xmlpretty.py.
tuple xmlpretty::f = open(args.infile[0],'r') |
Definition at line 13 of file xmlpretty.py.
tuple xmlpretty::parser = argparse.ArgumentParser(description="Format XML") |
Definition at line 7 of file xmlpretty.py.
tuple xmlpretty::text = f.read() |
Definition at line 14 of file xmlpretty.py.