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

diff --git a/php/structure.php b/php/structure.php
new file mode 100644 (file)
index 0000000..adb153e
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+require('xml-template.php');
+
+$doc = XML_Template_process_file('../xml/structure.xml', array(
+       '#outer' => array(
+               array( '#inner' => 'One' ),
+               array( '#inner' => 'Two' ),
+               array( '#inner' => 'Three' ),
+       )
+));
+print $doc->dump_mem();
+?>