]> git.sesse.net Git - xml-template/blobdiff - php5-swig/simple.php
Implement prettyprinting in the PHP5 SWIG version.
[xml-template] / php5-swig / simple.php
index 7e6ce848ca79222eae58d7404ee5b8f13285304c..919d9ee13532ba561e1801010a2f0c15a0c9439f 100644 (file)
@@ -5,7 +5,8 @@ $doc = XML_Template_process_file('../xml/simple.xml', array(
        'title' => 'A very basic example',
        '#hello' => 'Hello world!'
 ), true);
-print XML_Template_convert_doc_to_string($doc);
+XML_Template_clean_whitespace($doc, true);
+print XML_Template_convert_doc_to_string($doc, true);
 
 ?>