]> git.sesse.net Git - xml-template/blob - php7-swig/structure.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php7-swig / structure.php
1 <?php
2 include("xml-template.php");
3
4 $doc = XML_Template_process_file('../xml/structure.xml', array(
5         '#outer' => array(
6                 array( '#inner' => 'One' ),
7                 array( '#inner' => 'Two' ),
8                 array( '#inner' => 'Three' ),
9         )
10 ), true);
11 print XML_Template_convert_doc_to_string($doc);
12 ?>