Source for file example2.php
Documentation is available at example2.php
* XML_Beautifier example 2
* This example displays the formatString()
* method which can be used to beautify an XML string instead
* @author Stephan Schmidt <schst@php.net>
$xmlString = '<xml><foo bar="tomato & Cheese"/><argh>foobar<![CDATA[ Test
require_once 'XML/Beautifier.php';
$result = $fmt->formatString ($xmlString);
echo "<h3>Original string</h3>";
echo "<h3>Beautified string</h3>";
Documentation generated on Mon, 11 Mar 2019 15:41:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|