X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=python%2Fattribute.py;h=450e09704ddc01b3b6520f850470e3bd0bfcb0b8;hb=cba8eef965a5c243cd8bf51059f3bdd98793a22c;hp=61014a78da768d3fe3895e7cc8c83c477e6ef5fb;hpb=9fe8acbb891ac3ff31233be8c62c1b9d6d63a956;p=xml-template diff --git a/python/attribute.py b/python/attribute.py index 61014a7..450e097 100644 --- a/python/attribute.py +++ b/python/attribute.py @@ -4,10 +4,10 @@ import xmltemplate doc = xmltemplate.process_file("../xml/clone.xml", { '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())