ixml/src/node.c
static BOOL ixmlNode_isAncestor(
	/*! [in] The candidate to ancestor \b Node. */
	IXML_Node *ancestorNode,
	/*! [in] The \b Node to check for an ancestor. */
	IXML_Node *toFind)
{
	BOOL found = FALSE;

	if (ancestorNode != NULL && toFind != NULL) {
		if (toFind->parentNode == ancestorNode) {
			return TRUE;
		} else {
			found = ixmlNode_isAncestor(
				ancestorNode->firstChild, toFind);
			if (found == FALSE) {
				found = ixmlNode_isAncestor(
					ancestorNode->nextSibling, toFind);
			}
		}
	}

	return found;
}
/*!
 * \brief Check if ancestorNode is ancestor of toFind.
 *
 * \return TRUE or FALSE.
 */
\brief Check if ancestorNode is ancestor of toFind.
\return TRUE or FALSE.
\ brief Check if ancestorNode is ancestor of toFind . \ return TRUE or FALSE .
static BOOL ixmlNode_isAncestor(
	IXML_Node *ancestorNode,
	IXML_Node *toFind)
{
	BOOL found = FALSE;
	if (ancestorNode != NULL && toFind != NULL) {
		if (toFind->parentNode == ancestorNode) {
			return TRUE;
		} else {
			found = ixmlNode_isAncestor(
				ancestorNode->firstChild, toFind);
			if (found == FALSE) {
				found = ixmlNode_isAncestor(
					ancestorNode->nextSibling, toFind);
			}
		}
	}
	return found;
}
static BOOL ixmlNode_isAncestor ( IXML_Node * ancestorNode , IXML_Node * toFind ) { BOOL found = FALSE ; if ( ancestorNode != NULL && toFind != NULL ) { if ( toFind -> parentNode == ancestorNode ) { return TRUE ; } else { found = ixmlNode_isAncestor ( ancestorNode -> firstChild , toFind ) ; if ( found == FALSE ) { found = ixmlNode_isAncestor ( ancestorNode -> nextSibling , toFind ) ; } } } return found ; }
\brief Check if ancestorNode is ancestor of toFind.
\ brief Check if ancestorNode is ancestor of toFind .
/*! [in] The candidate to ancestor \b Node. */ /*! [in] The \b Node to check for an ancestor. */