]> git.sesse.net Git - xml-template/blob - python/attribute-empty.py
Add PHP and Python variants of attribute-empty.
[xml-template] / python / attribute-empty.py
1 #! /usr/bin/python
2 import xmltemplate
3
4 doc = xmltemplate.process_file("../xml/clone.xml", {
5         "color": "blue",
6         "#things": xmltemplate.alternate("li/class", [
7         ], "odd", "even")
8 });
9 print doc.toxml()