]> git.sesse.net Git - xml-template/blob - python/simple.py
Do weird dances to get php5-swig garbage collection going. Something tells me this...
[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()