<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>EXPORT_SPEC int ixmlElement_setAttributeNodeNS</TITLE> <META NAME="GENERATOR" CONTENT="DOC++ 3.4.10"> </HEAD> <BODY BGCOLOR="#ffffff"> <H2>EXPORT_SPEC int <A HREF="#DOC.DOCU">ixmlElement_setAttributeNodeNS</A></H2><H2>(IXML_Element* element,<BR> IXML_Attr* newAttr,<BR> IXML_Attr** rcAttr )</H2><BLOCKQUOTE>Adds a new attribute node.</BLOCKQUOTE> <A NAME="DOC.DOCU"></A> <HR> <H2>Documentation</H2> <BLOCKQUOTE>Adds a new attribute node. If an attribute with the same local name and namespace URI already exists in the <B>Element</B>, the existing attribute node is replaced with <B>newAttr</B> and the old returned in <B>rcAttr</B>. <P></BLOCKQUOTE> <DL><DT><DT><B>Parameters:</B><DD><B>element</B> - The <B>Element</B> in which to add the attribute node. <BR><B>newAttr</B> - The new <B>Attr</B> to add. <BR><B>rcAttr</B> - A pointer to the replaced <B>Attr</B>, if it exists. <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_PARAMETER</TT>: Either <B>element</B> or <B>newAttr</B> is <TT>NULL</TT>. <LI> <TT>IXML_WRONG_DOCUMENT_ERR</TT>: <B>newAttr</B> does not belong to the same document as <B>element</B>. <LI> <TT>IXML_INUSE_ATTRIBUTE_ERR</TT>: <B>newAttr</B> already is an attribute of another <B>Element</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>