IXML_NodeList *ixmlElement_getElementsByTagNameNS( IXML_Element *element, const DOMString namespaceURI, const DOMString localName) { IXML_Node *node = (IXML_Node *)element; IXML_NodeList *nodeList = NULL; if(element != NULL && namespaceURI != NULL && localName != NULL) { ixmlNode_getElementsByTagNameNS( node, namespaceURI, localName, &nodeList); } return nodeList; }
/*================================================================ * ixmlDocument_getElementsByTagNameNS * Returns a nodeList of all the Elements with a given local name and * namespace URI in the order in which they are encountered in a * preorder traversal of the document tree. * External function. * Parameters: * namespaceURI: the namespace of the elements to match on. The special * value "*" matches all namespaces. * localName: the local name of the elements to match on. The special * value "*" matches all local names. * Return Value: * A new nodeList object containing all the matched Elements. * *=================================================================*/ IXML_NodeList * ixmlDocument_getElementsByTagNameNS( IN IXML_Document * doc, IN DOMString namespaceURI, IN DOMString localName ) { IXML_NodeList *returnNodeList = NULL; if( ( doc == NULL ) || ( namespaceURI == NULL ) || ( localName == NULL ) ) { return NULL; } ixmlNode_getElementsByTagNameNS( ( IXML_Node * ) doc, namespaceURI, localName, &returnNodeList ); return returnNodeList; }