]> git.sesse.net Git - xml-template/blob - python/structure.py
Add Python 3 support.
[xml-template] / python / structure.py
1 #! /usr/bin/python
2 import xmltemplate
3
4 doc = xmltemplate.process_file("../xml/structure.xml", {
5         '#outer': [
6                 { '#inner': 'One' },
7                 { '#inner': 'Two' },
8                 { '#inner': 'Three' },
9         ]
10 })
11 print(doc.toxml())