]> git.sesse.net Git - xml-template/blobdiff - php7-swig/structure.php
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / php7-swig / structure.php
diff --git a/php7-swig/structure.php b/php7-swig/structure.php
new file mode 100644 (file)
index 0000000..de2e3ab
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+include("xml-template.php");
+
+$doc = XML_Template_process_file('../xml/structure.xml', array(
+       '#outer' => array(
+               array( '#inner' => 'One' ),
+               array( '#inner' => 'Two' ),
+               array( '#inner' => 'Three' ),
+       )
+), true);
+print XML_Template_convert_doc_to_string($doc);
+?>