]> git.sesse.net Git - xml-template/commitdiff
Add python/structure tests, passes.
authorsgunderson@bigfoot.com <>
Thu, 1 Mar 2007 13:36:15 +0000 (14:36 +0100)
committersgunderson@bigfoot.com <>
Thu, 1 Mar 2007 13:36:15 +0000 (14:36 +0100)
python/structure.py [new file with mode: 0644]

diff --git a/python/structure.py b/python/structure.py
new file mode 100644 (file)
index 0000000..519ec6f
--- /dev/null
@@ -0,0 +1,11 @@
+#! /usr/bin/python
+import xmltemplate
+
+doc = xmltemplate.process_file("../xml/structure.xml", {
+       '#outer': [
+               { '#inner': 'One' },
+               { '#inner': 'Two' },
+               { '#inner': 'Three' },
+       ]
+})
+print doc.toxml()