A Python UPnP Media Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/usr/bin/python
-
- # Copyright 2005, Tim Potter <tpot@samba.org>
-
- # Licensed under the MIT license
- # http://opensource.org/licenses/mit-license.php
-
- """Take XML on stdin and produce pretty-printed XML on stdout."""
-
- import sys
- from xml.dom import minidom
-
- str = ""
- for s in sys.stdin.readlines():
- str = str + s[:-1] # Eat trailing \n
-
- doc = minidom.parseString(str)
- print doc.toprettyxml(indent = " ")
|