]> git.sesse.net Git - xml-template/blobdiff - php5-swig/attribute.php
In php5-swig, replace the output_by_fd() hack with a function that allows conversion...
[xml-template] / php5-swig / attribute.php
index d63cf69c23ab1ac0c5ec4fe059cf272314f0e774..8087dc7adfce9229b75b9a3e7a8d4b1d89ef8163 100644 (file)
@@ -1,6 +1,6 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
 $doc = XML_Template_process_file('../xml/clone.xml', array(
        'color' => 'red',
        '#things' => array(
@@ -10,5 +10,5 @@ $doc = XML_Template_process_file('../xml/clone.xml', array(
                array( 'li' => 'Warm, woolen mittens',  'li/class' => 'even' )
        )
 ), true);
-output_to_fd_and_free($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 ?>