]> git.sesse.net Git - xml-template/blob - python/simple.py
7c78ed03696f5b4c72d58673ea8a269df369aa5f
[xml-template] / python / simple.py
1 #! /usr/bin/python
2 import xmltemplate
3
4 doc = xmltemplate.process_file("../xml/simple.xml", {
5         'title': 'A very basic example',
6         '#hello': 'Hello world!'
7 })
8 print doc.toxml()