<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
<refentry xml:id="xmlwriter.text" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>XMLWriter::text</refname>
  <refname>xmlwriter_text</refname>
  <refpurpose>Write text</refpurpose>
 </refnamediv>
 <refsect1 role="description">
  &reftitle.description;
  <para>&style.oop;</para>
  <methodsynopsis role="XMLWriter">
   <modifier>public</modifier> <type>bool</type><methodname>XMLWriter::text</methodname>
   <methodparam><type>string</type><parameter>content</parameter></methodparam>
  </methodsynopsis>
  <para>&style.procedural;</para>
  <methodsynopsis>
   <type>bool</type><methodname>xmlwriter_text</methodname>
   <methodparam><type>XMLWriter</type><parameter>writer</parameter></methodparam>
   <methodparam><type>string</type><parameter>content</parameter></methodparam>
  </methodsynopsis>
  <para>
   Writes a text.
  </para>
 </refsect1>
 <refsect1 role="parameters">
  &reftitle.parameters;
  <para>
   <variablelist>
    &xmlwriter.xmlwriter.description;
    <varlistentry>
     <term><parameter>content</parameter></term>
     <listitem>
      <para>
       The contents of the text.
       The characters <literal>&lt;</literal>, <literal>&gt;</literal>,
       <literal>&amp;</literal> and <literal>"</literal> are written as
       entity references (i.e. <literal>&amp;lt;</literal>, <literal>&amp;gt;</literal>,
       <literal>&amp;amp;</literal> and <literal>&amp;quot;</literal>, respectively).
       All other characters including <literal>&apos;</literal> are written literally.
       To write the special XML characters literally, or to write literal entity references,
       <function>xmlwriter_write_raw</function> has to be used.
      </para>
     </listitem>
    </varlistentry>
   </variablelist>
  </para>
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   &return.success;
  </para>
 </refsect1>

 <refsect1 role="changelog">
  &reftitle.changelog;
  <informaltable>
   <tgroup cols="2">
    <thead>
     <row>
      <entry>&Version;</entry>
      <entry>&Description;</entry>
     </row>
    </thead>
    <tbody>
     &xmlwriter.changelog.writer-param;
    </tbody>
   </tgroup>
  </informaltable>
 </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
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/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
-->
