File: xmlpretty.py

package info (click to toggle)
synce-sync-engine 0.11.1-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 996 kB
  • ctags: 923
  • sloc: python: 8,586; xml: 949; makefile: 51; sh: 7
file content (8 lines) | stat: -rwxr-xr-x 171 bytes parent folder | download
1
2
3
4
5
6
7
8
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from xml.dom import minidom

src = minidom.parseString(sys.stdin.read())
print src.toprettyxml(encoding="utf-8")