]> git.sesse.net Git - xml-template/blob - python/simple.py
Add Python 3 support.
[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())