cvs: peardoc /en/package/xml/xml-beautifier options.xml

From: Date: Sat, 20 Dec 2003 20:10:35 +0000
Subject: cvs: peardoc /en/package/xml/xml-beautifier options.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2057@lists.php.net to get a copy of this message
schst Sat Dec 20 15:10:35 2003 EDT Modified files: /peardoc/en/package/xml/xml-beautifier options.xml Log: added example for options Index: peardoc/en/package/xml/xml-beautifier/options.xml diff -u peardoc/en/package/xml/xml-beautifier/options.xml:1.1 peardoc/en/package/xml/xml-beautifier/options.xml:1.2 --- peardoc/en/package/xml/xml-beautifier/options.xml:1.1 Sat Dec 20 14:30:36 2003 +++ peardoc/en/package/xml/xml-beautifier/options.xml Sat Dec 20 15:10:35 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.xml.xml-beautifier.options"> <refnamediv> <refname>Options</refname> @@ -79,6 +79,27 @@ </table> </para> </refsect1> + <refsect1 id="package.xml.xml-beautifier.options.example1"> + <title>Options example</title> + <simpara> + The following example shows how to set options for XML_Beautifier. + </simpara> + <example> + <title>XML_Beautifier options</title> + <programlisting role="php"> + <![CDATA[require_once "XML/Beautifier.php"; +$options = array( + "caseFolding" => true, + "caseFoldingTo" => "uppercase", + "normalizeComments" => true + ); + +$fmt = new XML_Beautifier($options); +$result = $fmt->formatFile('originalFile.xml', 'outputFile.xml'); +]]> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.pear.doc (#2057) next »