cvs: peardoc /en/package/xml xml-beautifier.xml /en/package/xml/xml-beautifier options.xml /en/package/xml/xml-beautifier/xml-beautifier
formatfile.xml formatstring.xml xml-beautifier.xml
| From: | Stephan Schmidt | Date: | Sat, 20 Dec 2003 19:30:37 +0000 |
| Subject: | cvs: peardoc /en/package/xml xml-beautifier.xml /en/package/xml/xml-beautifier options.xml /en/package/xml/xml-beautifier/xml-beautifier formatfile.xml formatstring.xml xml-beautifier.xml |
||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-2054@lists.php.net to get a copy of this message | ||
schst Sat Dec 20 14:30:37 2003 EDT
Added files:
/peardoc/en/package/xml/xml-beautifier options.xml
/peardoc/en/package/xml/xml-beautifier/xml-beautifier
formatfile.xml
formatstring.xml
xml-beautifier.xml
Modified files:
/peardoc/en/package/xml xml-beautifier.xml
Log:
added docs on options and missing methods
Index: peardoc/en/package/xml/xml-beautifier.xml diff -u peardoc/en/package/xml/xml-beautifier.xml:1.1 peardoc/en/package/xml/xml-beautifier.xml:1.2 --- peardoc/en/package/xml/xml-beautifier.xml:1.1 Sat Dec 20 13:08:08 2003 +++ peardoc/en/package/xml/xml-beautifier.xml Sat Dec 20 14:30:35 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect1 id="package.xml.xml-beautifier"> <title>XML_Beautifier</title> @@ -9,7 +9,11 @@ </para> &package.xml.xml-beautifier.intro; &package.xml.xml-beautifier.example; + &package.xml.xml-beautifier.options; + &package.xml.xml-beautifier.xml-beautifier.xml-beautifier; &package.xml.xml-beautifier.xml-beautifier.apiversion; + &package.xml.xml-beautifier.xml-beautifier.formatfile; + &package.xml.xml-beautifier.xml-beautifier.formatstring; </sect1> <!-- Keep this comment at the end of the file Local variables: Index: peardoc/en/package/xml/xml-beautifier/options.xml +++ peardoc/en/package/xml/xml-beautifier/options.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.options"> <refnamediv> <refname>Options</refname> <refpurpose>List of all XML_Beautifier options</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-beautifier.options.refsect1"> <title>Introduction to options</title> <para> Options let you influence the beautifiying process. They are passed to the renderer and thus, you have to check, whether the renderer you are using supports the options you want to use. </para> <para> As there currently is only one renderer (Plain) available, you should not worry about this too much. </para> <para> Options can be passed as an associative array to the <link linkend="package.xml.xml-beautifier.xml-beautifier.xml-beautifier">constructor of XML_Beautifier</link>. </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.options.refsect2"> <title>All available options</title> <para> Here is a list of all options supported by XML_Beautifier. </para> <para> <table> <title>XML_Beautifier optsion</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Possible values</entry> <entry>Default</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>indent</entry> <entry>any string</entry> <entry>" " (4 spaces)</entry> <entry>The string passed to this option will be used to indent the tags in one level.</entry> </row> <row> <entry>linebreak</entry> <entry>any string</entry> <entry>"\n"</entry> <entry>The string passed to this option will be used for linebreaks You should use "\n" or "\r\n".</entry> </row> <row> <entry>caseFolding</entry> <entry>&false; or &true;</entry> <entry>&false;</entry> <entry>Disable or enable case folding for tags and attributes</entry> </row> <row> <entry>caseFoldingTo</entry> <entry>"uppercase" or "lowercase"</entry> <entry>"uppercase"</entry> <entry>Can be used, if caseFolding is set to &true; to define whether tags and attributes should be converted to upper- or lowercase</entry> </row> <row> <entry>normalizeComments</entry> <entry>&false; or &true;</entry> <entry>&false;</entry> <entry>If set to true, all adjacent whitespaces in an XML comment will be converted to one space. This will convert comments with more than one line to a comment with one line.</entry> </row> <row> <entry>maxCommentLine</entry> <entry>integer</entry> <entry>-1</entry> <entry>Maximum length of comment line. If a comment exceeds this limit, it will be wrapped automatically. If set to -1 the line length is unlimited.</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatfile.xml +++ peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatfile.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.xml-beautifier.formatfile"> <refnamediv> <refname><function>XML_Beautifier::formatFile</function></refname> <refpurpose>return API version</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Beautifier.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object <function>XML_Beautifier::formatFile</function></funcdef> <paramdef>string <parameter> $file</parameter></paramdef> <paramdef>string <parameter> <optional>$newFile = &null;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$renderer = "Plain"</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatfile.desc"> &title.desc; <para> Beautifies a file. </para> </refsect1> <refsect1 id="package.default.xml-beautifier.xml-beautifier.formatfile.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $file</parameter> - filename of the original file </para> </listitem> <listitem> <para> <parameter>string $newFile</parameter> - filename for the beautified file. If no file is given, the method will return the resulting XML document. To overwrite the original file, pass <constant>XML_BEAUTIFIER_OVERWRITE</constant>. </para> </listitem> <listitem> <para> <parameter>string $renderer</parameter> - renderer to use, currently only a "Plain" XML renderer can be used. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatfile.return"> &title.returns; <para> <emphasis>mixed</emphasis> Either true, if file has been written or the XML document string. </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatfile.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatstring.xml +++ peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatstring.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.xml-beautifier.formatstring"> <refnamediv> <refname><function>XML_Beautifier::formatString</function></refname> <refpurpose>return API version</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Beautifier.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object <function>XML_Beautifier::formatString</function></funcdef> <paramdef>string <parameter> $string</parameter></paramdef> <paramdef>string <parameter> <optional>$renderer = "Plain"</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatstring.desc"> &title.desc; <para> Beautifies an XML string. Use this method to beautify an XML document that has been generated on-the-fly. </para> </refsect1> <refsect1 id="package.default.xml-beautifier.xml-beautifier.formatstring.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - string containing an XML document. </para> </listitem> <listitem> <para> <parameter>string $renderer</parameter> - renderer to use, currently only a "Plain" XML renderer can be used. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatstring.return"> &title.returns; <para> <emphasis>string</emphasis> beautified XML document </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatstring.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/package/xml/xml-beautifier/xml-beautifier/xml-beautifier.xml +++ peardoc/en/package/xml/xml-beautifier/xml-beautifier/xml-beautifier.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier"> <refnamediv> <refname><function>XML_Beautifier::XML_Beautifier</function></refname> <refpurpose>return API version</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Beautifier.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object <function>XML_Beautifier::XML_Beautifier</function></funcdef> <paramdef>array <parameter> <optional>$options = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier.desc"> &title.desc; <para> Creates a new instance of XML_Beautifier. </para> </refsect1> <refsect1 id="package.default.xml-beautifier.xml-beautifier.xml-beautifier.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $options</parameter> - options are used to influence to beautifying process. You may set the indent string, specify whether case folding should be enabled, etc... </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier.return"> &title.returns; <para> <emphasis>object</emphasis> XML_Beautifier object </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
Index: peardoc/en/package/xml/xml-beautifier.xml diff -u peardoc/en/package/xml/xml-beautifier.xml:1.1 peardoc/en/package/xml/xml-beautifier.xml:1.2 --- peardoc/en/package/xml/xml-beautifier.xml:1.1 Sat Dec 20 13:08:08 2003 +++ peardoc/en/package/xml/xml-beautifier.xml Sat Dec 20 14:30:35 2003 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect1 id="package.xml.xml-beautifier"> <title>XML_Beautifier</title> @@ -9,7 +9,11 @@ </para> &package.xml.xml-beautifier.intro; &package.xml.xml-beautifier.example; + &package.xml.xml-beautifier.options; + &package.xml.xml-beautifier.xml-beautifier.xml-beautifier; &package.xml.xml-beautifier.xml-beautifier.apiversion; + &package.xml.xml-beautifier.xml-beautifier.formatfile; + &package.xml.xml-beautifier.xml-beautifier.formatstring; </sect1> <!-- Keep this comment at the end of the file Local variables: Index: peardoc/en/package/xml/xml-beautifier/options.xml +++ peardoc/en/package/xml/xml-beautifier/options.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.options"> <refnamediv> <refname>Options</refname> <refpurpose>List of all XML_Beautifier options</refpurpose> </refnamediv> <refsect1 id="package.xml.xml-beautifier.options.refsect1"> <title>Introduction to options</title> <para> Options let you influence the beautifiying process. They are passed to the renderer and thus, you have to check, whether the renderer you are using supports the options you want to use. </para> <para> As there currently is only one renderer (Plain) available, you should not worry about this too much. </para> <para> Options can be passed as an associative array to the <link linkend="package.xml.xml-beautifier.xml-beautifier.xml-beautifier">constructor of XML_Beautifier</link>. </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.options.refsect2"> <title>All available options</title> <para> Here is a list of all options supported by XML_Beautifier. </para> <para> <table> <title>XML_Beautifier optsion</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Possible values</entry> <entry>Default</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>indent</entry> <entry>any string</entry> <entry>" " (4 spaces)</entry> <entry>The string passed to this option will be used to indent the tags in one level.</entry> </row> <row> <entry>linebreak</entry> <entry>any string</entry> <entry>"\n"</entry> <entry>The string passed to this option will be used for linebreaks You should use "\n" or "\r\n".</entry> </row> <row> <entry>caseFolding</entry> <entry>&false; or &true;</entry> <entry>&false;</entry> <entry>Disable or enable case folding for tags and attributes</entry> </row> <row> <entry>caseFoldingTo</entry> <entry>"uppercase" or "lowercase"</entry> <entry>"uppercase"</entry> <entry>Can be used, if caseFolding is set to &true; to define whether tags and attributes should be converted to upper- or lowercase</entry> </row> <row> <entry>normalizeComments</entry> <entry>&false; or &true;</entry> <entry>&false;</entry> <entry>If set to true, all adjacent whitespaces in an XML comment will be converted to one space. This will convert comments with more than one line to a comment with one line.</entry> </row> <row> <entry>maxCommentLine</entry> <entry>integer</entry> <entry>-1</entry> <entry>Maximum length of comment line. If a comment exceeds this limit, it will be wrapped automatically. If set to -1 the line length is unlimited.</entry> </row> </tbody> </tgroup> </table> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatfile.xml +++ peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatfile.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.xml-beautifier.formatfile"> <refnamediv> <refname><function>XML_Beautifier::formatFile</function></refname> <refpurpose>return API version</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Beautifier.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object <function>XML_Beautifier::formatFile</function></funcdef> <paramdef>string <parameter> $file</parameter></paramdef> <paramdef>string <parameter> <optional>$newFile = &null;</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$renderer = "Plain"</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatfile.desc"> &title.desc; <para> Beautifies a file. </para> </refsect1> <refsect1 id="package.default.xml-beautifier.xml-beautifier.formatfile.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $file</parameter> - filename of the original file </para> </listitem> <listitem> <para> <parameter>string $newFile</parameter> - filename for the beautified file. If no file is given, the method will return the resulting XML document. To overwrite the original file, pass <constant>XML_BEAUTIFIER_OVERWRITE</constant>. </para> </listitem> <listitem> <para> <parameter>string $renderer</parameter> - renderer to use, currently only a "Plain" XML renderer can be used. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatfile.return"> &title.returns; <para> <emphasis>mixed</emphasis> Either true, if file has been written or the XML document string. </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatfile.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatstring.xml +++ peardoc/en/package/xml/xml-beautifier/xml-beautifier/formatstring.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.xml-beautifier.formatstring"> <refnamediv> <refname><function>XML_Beautifier::formatString</function></refname> <refpurpose>return API version</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Beautifier.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object <function>XML_Beautifier::formatString</function></funcdef> <paramdef>string <parameter> $string</parameter></paramdef> <paramdef>string <parameter> <optional>$renderer = "Plain"</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatstring.desc"> &title.desc; <para> Beautifies an XML string. Use this method to beautify an XML document that has been generated on-the-fly. </para> </refsect1> <refsect1 id="package.default.xml-beautifier.xml-beautifier.formatstring.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>string $string</parameter> - string containing an XML document. </para> </listitem> <listitem> <para> <parameter>string $renderer</parameter> - renderer to use, currently only a "Plain" XML renderer can be used. </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatstring.return"> &title.returns; <para> <emphasis>string</emphasis> beautified XML document </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.formatstring.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: peardoc/en/package/xml/xml-beautifier/xml-beautifier/xml-beautifier.xml +++ peardoc/en/package/xml/xml-beautifier/xml-beautifier/xml-beautifier.xml <!-- $Revision: 1.1 $ --> <refentry id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier"> <refnamediv> <refname><function>XML_Beautifier::XML_Beautifier</function></refname> <refpurpose>return API version</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'XML/Beautifier.php'; </funcsynopsisinfo> <funcprototype> <funcdef>object <function>XML_Beautifier::XML_Beautifier</function></funcdef> <paramdef>array <parameter> <optional>$options = array()</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier.desc"> &title.desc; <para> Creates a new instance of XML_Beautifier. </para> </refsect1> <refsect1 id="package.default.xml-beautifier.xml-beautifier.xml-beautifier.param"> &title.param; <para> <itemizedlist> <listitem> <para> <parameter>array $options</parameter> - options are used to influence to beautifying process. You may set the indent string, specify whether case folding should be enabled, etc... </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier.return"> &title.returns; <para> <emphasis>object</emphasis> XML_Beautifier object </para> </refsect1> <refsect1 id="package.xml.xml-beautifier.xml-beautifier.xml-beautifier.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->