]> git.sesse.net Git - xml-template/blobdiff - python/structure.py
Add python/structure tests, passes.
[xml-template] / python / structure.py
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()