]> git.sesse.net Git - xml-template/blobdiff - php5-swig/simple.php
Add a proper wrapper for php5-swig, which also makes attribute[23] pass. All tests...
[xml-template] / php5-swig / simple.php
index 44cbd2f775ffefe04df5d2569c6c5e3e885dd930..33a512d8711645586a618e5c93863b8c5f264f37 100644 (file)
@@ -1,11 +1,11 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
-$doc = process_file('../xml/simple.xml', array( 
+$doc = XML_Template_process_file('../xml/simple.xml', array( 
        'title' => 'A very basic example',
        '#hello' => 'Hello world!'
 ), true);
-output_to_fd_and_free($doc, 1);
+output_to_fd($doc, 1);
 
 ?>