Location: PHPKode > scripts > Beauty XML > beauty-xml/testing.php
<?php
     
     
    require_once('beauty_xml.php');
     
    $bx = new beauty_xml();
     
    // loading file into o string
    $xmlString = join("", file('testing.xml'));
     
    echo "<h3>Original string</h3>";
    echo "<pre>";
    echo htmlspecialchars($xmlString);
    echo "</pre>";
     
    echo "<h3>Beautified string</h3>";
    echo "<pre>";
    echo htmlspecialchars($bx->format_xml($xmlString));
    echo "</pre>";
?>
Return current item: Beauty XML