Sophie

Sophie

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

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
>DOMNode-&#62;replaceChild()</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="DOM Functions"
HREF="ref.dom.html"><LINK
REL="PREVIOUS"
TITLE="DOMNode->removeChild()"
HREF="function.dom-domnode-removechild.html"><LINK
REL="NEXT"
TITLE="DOMNodelist->item()"
HREF="function.dom-domnodelist-item.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.dom-domnode-removechild.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.dom-domnodelist-item.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.dom-domnode-replacechild"
></A
>DOMNode-&#62;replaceChild()</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN39007"
></A
><P
>    (no version information, might be only in CVS)</P
>DOMNode-&#62;replaceChild()&nbsp;--&nbsp;
   Replaces a child
  </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN39010"
></A
><H2
>Descrição</H2
>class <B
CLASS="classname"
>DOMNode</B
> { <BR
></BR
>DOMNode <B
CLASS="methodname"
>replaceChild</B
> ( DOMNode newnode, DOMNode oldnode )<BR
></BR
>}<P
>&#13;   This function replaces the child <CODE
CLASS="parameter"
>oldnode</CODE
> 
   with the passed new node. If the new node is already a child it 
   will not be added a second time. If the replacement succeeds the 
   old node is returned.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN39026"
></A
><H2
>Parâmetros</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>newnode</CODE
></DT
><DD
><P
>&#13;       The new node. It must be a member of the target document, i.e.
       created by one of the DOMDocument-&#62;createXXX() methods or imported in
       the document by <A
HREF="function.dom-domdocument-importnode.html"
>DOMDocument-&#62;importNode()</A
>.
      </P
></DD
><DT
><CODE
CLASS="parameter"
>oldnode</CODE
></DT
><DD
><P
>&#13;       The old node.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN39041"
></A
><H2
>Valores de retornado</H2
><P
>&#13;   The old node or <TT
CLASS="constant"
><B
>FALSE</B
></TT
> if an error occur.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN39045"
></A
><H2
>Erros/Excessões</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>DOM_NO_MODIFICATION_ALLOWED_ERR</B
></TT
></DT
><DD
><P
>&#13;       Raised if this node is readonly or if the previous parent of the node
       being inserted is readonly.
      </P
></DD
><DT
><TT
CLASS="constant"
><B
>DOM_HIERARCHY_REQUEST_ERR</B
></TT
></DT
><DD
><P
>&#13;       Raised if this node is of a type that does not allow children of the 
       type of the <CODE
CLASS="parameter"
>newnode</CODE
> node, or if the node to 
       put in is one of this node's ancestors or this node itself.
      </P
></DD
><DT
><TT
CLASS="constant"
><B
>DOM_WRONG_DOCUMENT_ERR</B
></TT
></DT
><DD
><P
>&#13;       Raised if <CODE
CLASS="parameter"
>newnode</CODE
> was created from a different 
       document than the one that created this node.
      </P
></DD
><DT
><TT
CLASS="constant"
><B
>DOM_NOT_FOUND</B
></TT
></DT
><DD
><P
>&#13;       Raised if <CODE
CLASS="parameter"
>oldnode</CODE
> is not a child of this node.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN39072"
></A
><H2
>Veja também</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.dom-domnode-appendchild.html"
>DOMNode-&#62;appendChild()</A
></TD
></TR
><TR
><TD
><A
HREF="function.dom-domnode-removechild.html"
>DOMNode-&#62;removeChild()</A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </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.dom-domnode-removechild.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.dom-domnodelist-item.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>DOMNode-&#62;removeChild()</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.dom.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>DOMNodelist-&#62;item()</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>