]> git.sesse.net Git - xml-template/blob - php5-swig/attribute.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php5-swig / attribute.php
1 <?php
2 include("xml-template.php");
3
4 $doc = XML_Template_process_file('../xml/clone.xml', array(
5         'color' => 'red',
6         '#things' => array(
7                 array( 'li' => 'Raindrops on roses',    'li/class' => 'odd' ),
8                 array( 'li' => 'Whiskers on kittens',   'li/class' => 'even' ),
9                 array( 'li' => 'Bright copper kettles', 'li/class' => 'odd' ),
10                 array( 'li' => 'Warm, woolen mittens',  'li/class' => 'even' )
11         )
12 ), true);
13 print XML_Template_convert_doc_to_string($doc);
14 ?>