]> git.sesse.net Git - xml-template/blobdiff - 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
index 33a512d8711645586a618e5c93863b8c5f264f37..7e6ce848ca79222eae58d7404ee5b8f13285304c 100644 (file)
@@ -5,7 +5,7 @@ $doc = XML_Template_process_file('../xml/simple.xml', array(
        'title' => 'A very basic example',
        '#hello' => 'Hello world!'
 ), true);
-output_to_fd($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 
 ?>