]> git.sesse.net Git - xml-template/blob - php5-swig/simple.php
In php5-swig, replace the output_by_fd() hack with a function that allows conversion...
[xml-template] / php5-swig / simple.php
1 <?php
2 include("xml-template.php");
3
4 $doc = XML_Template_process_file('../xml/simple.xml', array( 
5         'title' => 'A very basic example',
6         '#hello' => 'Hello world!'
7 ), true);
8 print XML_Template_convert_doc_to_string($doc);
9
10 ?>
11