<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>EXPORT_SPEC int ixmlNode_replaceChild</TITLE> <META NAME="GENERATOR" CONTENT="DOC++ 3.4.10"> </HEAD> <BODY BGCOLOR="#ffffff"> <H2>EXPORT_SPEC int <A HREF="#DOC.DOCU">ixmlNode_replaceChild</A></H2><H2>(IXML_Node* nodeptr,<BR> IXML_Node* newChild,<BR> IXML_Node* oldChild,<BR> IXML_Node** returnNode )</H2><BLOCKQUOTE>Replaces an existing child <B>Node</B> with a new child <B>Node</B> in the list of children of a <B>Node</B>.</BLOCKQUOTE> <A NAME="DOC.DOCU"></A> <HR> <H2>Documentation</H2> <BLOCKQUOTE>Replaces an existing child <B>Node</B> with a new child <B>Node</B> in the list of children of a <B>Node</B>. If <B>newChild</B> is already in the tree, it will first be removed. <B>returnNode</B> will contain the <B>oldChild</B> <B>Node</B>, appropriately removed from the tree (i.e. it will no longer have an owner document). <P></BLOCKQUOTE> <DL><DT><DT><B>Parameters:</B><DD><B>nodeptr</B> - The parent of the <B>Node</B> which contains the child to replace. <BR><B>newChild</B> - The child with which to replace <B>oldChild</B>. <BR><B>oldChild</B> - The child to replace with <B>newChild</B>. <BR><B>returnNode</B> - Pointer to a <B>Node</B> to place the removed <B> oldChild</B> <B>Node</B>. <BR><DT><B>Returns:</B><DD> [int] An integer representing one of the following: <UL> <LI> <TT>IXML_SUCCESS</TT>: The operation completed successfully. <LI> <TT>IXML_INVALID_PARAMTER: Either <B>nodeptr</B>, <B> newChild</B>, or <B>oldChild</B> is <TT>NULL</TT>. <LI> <TT>IXML_HIERARCHY_REQUEST_ERR</TT>: The <B>newChild</B> is not a type of <B>Node</B> that can be inserted into this tree or <B>newChild</B> is an ancestor of <B>nodePtr</B>. <LI> <TT>IXML_WRONG_DOCUMENT_ERR</TT>: <B>newChild</B> was created from a different document than <B>nodeptr</B>. <LI> <TT>IXML_NO_MODIFICATION_ALLOWED_ERR</TT>: <B>nodeptr</B> or its parent is read-only. <LI> <TT>IXML_NOT_FOUND_ERR</TT>: <B>oldChild</B> is not a child of <B>nodeptr</B>. </UL> <BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I></P><HR> <BR> This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>. </BODY> </HTML>