]> git.sesse.net Git - xml-template/blobdiff - python/attribute.py
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / python / attribute.py
index 8a5b95bd231e08bebf4e185a5512ea153c54c38c..450e09704ddc01b3b6520f850470e3bd0bfcb0b8 100644 (file)
@@ -2,12 +2,12 @@
 import xmltemplate
 
 doc = xmltemplate.process_file("../xml/clone.xml", {
-       'color': 'blue',
+       'color': 'red',
        '#things': [
-               { "li": "Raindrops on roses",    "li/class": "even" },
-               { "li": "Whiskers on kittens",   "li/class": "odd" },
-               { "li": "Bright copper kettles", "li/class": "even" },
-               { "li": "Warm, woolen mittens",  "li/class": "odd" }
+               { "li": "Raindrops on roses",    "li/class": "odd" },
+               { "li": "Whiskers on kittens",   "li/class": "even" },
+               { "li": "Bright copper kettles", "li/class": "odd" },
+               { "li": "Warm, woolen mittens",  "li/class": "even" }
        ]
 })
-print doc.toxml()
+print(doc.toxml())