Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 5089

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>xml_parser_set_option</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Manual do PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="XML, Analisadores"
HREF="ref.xml.html"><LINK
REL="PREVIOUS"
TITLE="xml_parser_get_option"
HREF="function.xml-parser-get-option.html"><LINK
REL="NEXT"
TITLE="xml_set_character_data_handler"
HREF="function.xml-set-character-data-handler.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.xml-parser-get-option.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.xml-set-character-data-handler.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.xml-parser-set-option"
></A
>xml_parser_set_option</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN234418"
></A
><P
>    (PHP 3 &#62;= 3.0.6, PHP 4, PHP 5)</P
>xml_parser_set_option&nbsp;--&nbsp;Set options in an XML parser</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN234421"
></A
><H2
>Description</H2
>bool <B
CLASS="methodname"
>xml_parser_set_option</B
> ( resource parser, int option, mixed value )<BR
></BR
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>parser</CODE
></DT
><DD
><P
>&#13;       A reference to the XML parser to set an option in.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>option</CODE
></DT
><DD
><P
>&#13;       Which option to set.  See below.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>value</CODE
></DT
><DD
><P
>&#13;        The option's new value.
      </P
></DD
></DL
></DIV
>
  </P
><P
>&#13;   This function returns <TT
CLASS="constant"
><B
>FALSE</B
></TT
> if <CODE
CLASS="parameter"
>parser</CODE
> does not
   refer to a valid parser, or if the option could not be set.  Else the
   option is set and <TT
CLASS="constant"
><B
>TRUE</B
></TT
> is returned.
  </P
><P
>&#13;   The following options are available:
   <DIV
CLASS="table"
><A
NAME="AEN234457"
></A
><P
><B
>Tabela 1. XML parser options</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><THEAD
><TR
><TH
>Option constant</TH
><TH
>Data type</TH
><TH
>Description</TH
></TR
></THEAD
><TBODY
><TR
><TD
>XML_OPTION_CASE_FOLDING</TD
><TD
>integer</TD
><TD
>&#13;        Controls whether <A
HREF="ref.xml.html#xml.case-folding"
>case-folding</A
> is enabled for this
        XML parser.  Enabled by default.
       </TD
></TR
><TR
><TD
>XML_OPTION_SKIP_TAGSTART</TD
><TD
>integer</TD
><TD
>&#13;        Specify how many characters should be skipped in the beginning of a
        tag name.
       </TD
></TR
><TR
><TD
>XML_OPTION_SKIP_WHITE</TD
><TD
>integer</TD
><TD
>&#13;        Whether to skip values consisting of whitespace characters.
       </TD
></TR
><TR
><TD
>XML_OPTION_TARGET_ENCODING</TD
><TD
>string</TD
><TD
>&#13;        Sets which <A
HREF="ref.xml.html#xml.encoding"
>target encoding</A
> to
        use in this XML parser.By default, it is set to the same as the
        source encoding used by <A
HREF="function.xml-parser-create.html"
><B
CLASS="function"
>xml_parser_create()</B
></A
>.
        Supported target encodings are <TT
CLASS="literal"
>ISO-8859-1</TT
>,
        <TT
CLASS="literal"
>US-ASCII</TT
> and <TT
CLASS="literal"
>UTF-8</TT
>.
       </TD
></TR
></TBODY
></TABLE
></DIV
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.xml-parser-get-option.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.xml-set-character-data-handler.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>xml_parser_get_option</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.xml.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>xml_set_character_data_handler</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>