]> git.sesse.net Git - xml-template/blob - php7-swig/attribute.php
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / php7-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 ?>