From: sgunderson@bigfoot.com <> Date: Thu, 1 Mar 2007 13:36:15 +0000 (+0100) Subject: Add python/structure tests, passes. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=22cfabe0daa0d46b80ee235b71b2b611a0ca7212;p=xml-template Add python/structure tests, passes. --- diff --git a/python/structure.py b/python/structure.py new file mode 100644 index 0000000..519ec6f --- /dev/null +++ b/python/structure.py @@ -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()