ixml/src/node.c
static void ixmlNode_getElementsByTagNameRecursive(
	/*! [in] The \b Node tree. */
	IXML_Node *n,
	/*! [in] The tag name to match. */
	const char *tagname,
	/*! [out] The output \b NodeList. */
	IXML_NodeList **list)
{
	const char *name;

	if (n != NULL) {
		if (ixmlNode_getNodeType(n) == eELEMENT_NODE) {
			name = ixmlNode_getNodeName(n);
			if (strcmp(tagname, name) == 0 || strcmp(tagname, "*") == 0) {
				ixmlNodeList_addToNodeList(list, n);
			}
		}
		ixmlNode_getElementsByTagNameRecursive(ixmlNode_getFirstChild(n), tagname, list);
		ixmlNode_getElementsByTagNameRecursive(ixmlNode_getNextSibling(n), tagname, list);
	}
}
/*!
 * \brief Recursively traverse the whole tree, search for element with the
 * given tagname.
 */
\brief Recursively traverse the whole tree, search for element with the
given tagname.
\ brief Recursively traverse the whole tree search for element with the given tagname .
static void ixmlNode_getElementsByTagNameRecursive(
	IXML_Node *n,
	const char *tagname,
	IXML_NodeList **list)
{
	const char *name;
	if (n != NULL) {
		if (ixmlNode_getNodeType(n) == eELEMENT_NODE) {
			name = ixmlNode_getNodeName(n);
			if (strcmp(tagname, name) == 0 || strcmp(tagname, "*") == 0) {
				ixmlNodeList_addToNodeList(list, n);
			}
		}
		ixmlNode_getElementsByTagNameRecursive(ixmlNode_getFirstChild(n), tagname, list);
		ixmlNode_getElementsByTagNameRecursive(ixmlNode_getNextSibling(n), tagname, list);
	}
}
static void ixmlNode_getElementsByTagNameRecursive ( IXML_Node * n , const char * tagname , IXML_NodeList * * list ) { const char * name ; if ( n != NULL ) { if ( ixmlNode_getNodeType ( n ) == eELEMENT_NODE ) { name = ixmlNode_getNodeName ( n ) ; if ( strcmp ( tagname , name ) == 0 || strcmp ( tagname , " " ) == 0 ) { ixmlNodeList_addToNodeList ( list , n ) ; } } ixmlNode_getElementsByTagNameRecursive ( ixmlNode_getFirstChild ( n ) , tagname , list ) ; ixmlNode_getElementsByTagNameRecursive ( ixmlNode_getNextSibling ( n ) , tagname , list ) ; } }
\brief Recursively traverse the whole tree, search for element with the
 given tagname.
\ brief Recursively traverse the whole tree search for element with the given tagname .
/*! [in] The \b Node tree. */ /*! [in] The tag name to match. */ /*! [out] The output \b NodeList. */