]> git.sesse.net Git - xml-template/blobdiff - php5/structure.php
Add php5 (not working yet, just copied php4/).
[xml-template] / php5 / structure.php
diff --git a/php5/structure.php b/php5/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();
+?>