ixml/src/node.c
static IXML_CDATASection *ixmlNode_cloneCDATASect(
	/*! [in] The \b Node to clone. */
	IXML_CDATASection *nodeptr)
{
	IXML_CDATASection *newCDATA = NULL;
	IXML_Node *newNode;
	IXML_Node *srcNode;
	int rc;

	assert(nodeptr != NULL);
	newCDATA = (IXML_CDATASection *)malloc(sizeof (IXML_CDATASection));
	if (newCDATA != NULL) {
		newNode = (IXML_Node *)newCDATA;
		ixmlCDATASection_init(newCDATA);
		srcNode = (IXML_Node *)nodeptr;
		rc = ixmlNode_setNodeName(newNode, srcNode->nodeName);
		if (rc != IXML_SUCCESS) {
			ixmlCDATASection_free(newCDATA);
			return NULL;
		}
		rc = ixmlNode_setNodeValue(newNode, srcNode->nodeValue);
		if (rc != IXML_SUCCESS) {
			ixmlCDATASection_free(newCDATA);
			return NULL;
		}
		newNode->nodeType = eCDATA_SECTION_NODE;
	}

	return newCDATA;
}
/*!
 * \brief Return a clone of CDATASection node.
 *
 * \return A clone of CDATASection node.
 */
\brief Return a clone of CDATASection node.
\return A clone of CDATASection node.
\ brief Return a clone of CDATASection node . \ return A clone of CDATASection node .
static IXML_CDATASection *ixmlNode_cloneCDATASect(
	IXML_CDATASection *nodeptr)
{
	IXML_CDATASection *newCDATA = NULL;
	IXML_Node *newNode;
	IXML_Node *srcNode;
	int rc;
	assert(nodeptr != NULL);
	newCDATA = (IXML_CDATASection *)malloc(sizeof (IXML_CDATASection));
	if (newCDATA != NULL) {
		newNode = (IXML_Node *)newCDATA;
		ixmlCDATASection_init(newCDATA);
		srcNode = (IXML_Node *)nodeptr;
		rc = ixmlNode_setNodeName(newNode, srcNode->nodeName);
		if (rc != IXML_SUCCESS) {
			ixmlCDATASection_free(newCDATA);
			return NULL;
		}
		rc = ixmlNode_setNodeValue(newNode, srcNode->nodeValue);
		if (rc != IXML_SUCCESS) {
			ixmlCDATASection_free(newCDATA);
			return NULL;
		}
		newNode->nodeType = eCDATA_SECTION_NODE;
	}
	return newCDATA;
}
static IXML_CDATASection * ixmlNode_cloneCDATASect ( IXML_CDATASection * nodeptr ) { IXML_CDATASection * newCDATA = NULL ; IXML_Node * newNode ; IXML_Node * srcNode ; int rc ; assert ( nodeptr != NULL ) ; newCDATA = ( IXML_CDATASection * ) malloc ( sizeof ( IXML_CDATASection ) ) ; if ( newCDATA != NULL ) { newNode = ( IXML_Node * ) newCDATA ; ixmlCDATASection_init ( newCDATA ) ; srcNode = ( IXML_Node * ) nodeptr ; rc = ixmlNode_setNodeName ( newNode , srcNode -> nodeName ) ; if ( rc != IXML_SUCCESS ) { ixmlCDATASection_free ( newCDATA ) ; return NULL ; } rc = ixmlNode_setNodeValue ( newNode , srcNode -> nodeValue ) ; if ( rc != IXML_SUCCESS ) { ixmlCDATASection_free ( newCDATA ) ; return NULL ; } newNode -> nodeType = eCDATA_SECTION_NODE ; } return newCDATA ; }
\brief Return a clone of CDATASection node.
\ brief Return a clone of CDATASection node .
/*! [in] The \b Node to clone. */