]> git.sesse.net Git - xml-template/blobdiff - python/clone.py
Add full range of Python regression tests.
[xml-template] / python / clone.py
diff --git a/python/clone.py b/python/clone.py
new file mode 100644 (file)
index 0000000..65e9519
--- /dev/null
@@ -0,0 +1,13 @@
+#! /usr/bin/python
+import xmltemplate
+
+doc = xmltemplate.process_file("../xml/clone.xml", {
+       'color': 'blue',
+       '#things': (
+               { 'li': 'Raindrops on roses' },
+               { 'li': 'Whiskers on kittens' },
+               { 'li': 'Bright copper kettles' },
+               { 'li': 'Warm, woolen mittens' }
+       )
+})
+print doc.toxml()