ixml/src/node.c
static int ixmlNode_setNamespaceURI(
	/*! [in] The \b Node on which to operate. */
	IXML_Node *nodeptr,
	/*! [in] The name space string to set. */
	const char *namespaceURI)
{
	if (nodeptr == NULL) {
		return IXML_INVALID_PARAMETER;
	}

	if (nodeptr->namespaceURI != NULL) {
		free(nodeptr->namespaceURI);
		nodeptr->namespaceURI = NULL;
	}

	if (namespaceURI != NULL) {
		nodeptr->namespaceURI = strdup(namespaceURI);
		if (nodeptr->namespaceURI == NULL) {
			return IXML_INSUFFICIENT_MEMORY;
		}
	}

	return IXML_SUCCESS;
}
/*!
 * \brief Sets the namespace URI of the node.
 */
\brief Sets the namespace URI of the node.
\ brief Sets the namespace URI of the node .
static int ixmlNode_setNamespaceURI(
	IXML_Node *nodeptr,
	const char *namespaceURI)
{
	if (nodeptr == NULL) {
		return IXML_INVALID_PARAMETER;
	}
	if (nodeptr->namespaceURI != NULL) {
		free(nodeptr->namespaceURI);
		nodeptr->namespaceURI = NULL;
	}
	if (namespaceURI != NULL) {
		nodeptr->namespaceURI = strdup(namespaceURI);
		if (nodeptr->namespaceURI == NULL) {
			return IXML_INSUFFICIENT_MEMORY;
		}
	}
	return IXML_SUCCESS;
}
static int ixmlNode_setNamespaceURI ( IXML_Node * nodeptr , const char * namespaceURI ) { if ( nodeptr == NULL ) { return IXML_INVALID_PARAMETER ; } if ( nodeptr -> namespaceURI != NULL ) { free ( nodeptr -> namespaceURI ) ; nodeptr -> namespaceURI = NULL ; } if ( namespaceURI != NULL ) { nodeptr -> namespaceURI = strdup ( namespaceURI ) ; if ( nodeptr -> namespaceURI == NULL ) { return IXML_INSUFFICIENT_MEMORY ; } } return IXML_SUCCESS ; }
\brief Sets the namespace URI of the node.
\ brief Sets the namespace URI of the node .
/*! [in] The \b Node on which to operate. */ /*! [in] The name space string to set. */