]> git.sesse.net Git - xml-template/blob - python/simple.py
Add a proper wrapper for php5-swig, which also makes attribute[23] pass. All tests...
[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()