ixml/src/node.c
BOOL ixmlNode_compare(
	/*! [in] The first \b Node. */
	IXML_Node *srcNode,
	/*! [in] The second \b Node. */
 	IXML_Node *destNode)
{
	assert(srcNode != NULL && destNode != NULL);

	return 
		srcNode == destNode ||
	(strcmp(srcNode->nodeName, destNode->nodeName) == 0 &&
	 strcmp(srcNode->nodeValue, destNode->nodeValue) == 0 &&
	 srcNode->nodeType == destNode->nodeType &&
	 strcmp(srcNode->namespaceURI, destNode->namespaceURI) == 0 &&
	 strcmp(srcNode->prefix, destNode->prefix) == 0 &&
	 strcmp(srcNode->localName, destNode->localName) == 0);
}
/*!
 * \brief Compare two nodes to see whether they are the same node.
 * Parent, sibling and children node are ignored.
 *
 * \return
 * 	\li TRUE, the two nodes are the same.
 * 	\li FALSE, the two nodes are not the same.
 */
\brief Compare two nodes to see whether they are the same node.
Parent, sibling and children node are ignored.

\return
\li TRUE, the two nodes are the same.
\li FALSE, the two nodes are not the same.
\ brief Compare two nodes to see whether they are the same node . Parent sibling and children node are ignored . \ return \ li TRUE the two nodes are the same . \ li FALSE the two nodes are not the same .
BOOL ixmlNode_compare(
	IXML_Node *srcNode,
 	IXML_Node *destNode)
{
	assert(srcNode != NULL && destNode != NULL);
	return 
		srcNode == destNode ||
	(strcmp(srcNode->nodeName, destNode->nodeName) == 0 &&
	 strcmp(srcNode->nodeValue, destNode->nodeValue) == 0 &&
	 srcNode->nodeType == destNode->nodeType &&
	 strcmp(srcNode->namespaceURI, destNode->namespaceURI) == 0 &&
	 strcmp(srcNode->prefix, destNode->prefix) == 0 &&
	 strcmp(srcNode->localName, destNode->localName) == 0);
}
BOOL ixmlNode_compare ( IXML_Node * srcNode , IXML_Node * destNode ) { assert ( srcNode != NULL && destNode != NULL ) ; return srcNode == destNode || ( strcmp ( srcNode -> nodeName , destNode -> nodeName ) == 0 && strcmp ( srcNode -> nodeValue , destNode -> nodeValue ) == 0 && srcNode -> nodeType == destNode -> nodeType && strcmp ( srcNode -> namespaceURI , destNode -> namespaceURI ) == 0 && strcmp ( srcNode -> prefix , destNode -> prefix ) == 0 && strcmp ( srcNode -> localName , destNode -> localName ) == 0 ) ; }
\brief Compare two nodes to see whether they are the same node.
\ brief Compare two nodes to see whether they are the same node .
/*! [in] The first \b Node. */ /*! [in] The second \b Node. */