/*================================================================ * NamedNodeMap_getNamedItem * Retrieves a node specified by name. * External function. * * Parameter: * name: type nodeName of a node to retrieve. * * Return Value: * A Node with the specified nodeName, or null if it * does not identify any node in this map. * *=================================================================*/ IXML_Node * ixmlNamedNodeMap_getNamedItem( IN IXML_NamedNodeMap * nnMap, IN char *name ) { long index; if( ( nnMap == NULL ) || ( name == NULL ) ) { return NULL; } index = ixmlNamedNodeMap_getItemNumber( nnMap, name ); if( index == IXML_INVALID_ITEM_NUMBER ) { return NULL; } else { return ( ixmlNamedNodeMap_item( nnMap, ( unsigned long )index ) ); } }
IXML_Node *ixmlNamedNodeMap_getNamedItem( IXML_NamedNodeMap *nnMap, const DOMString name) { long index; if (nnMap == NULL || name == NULL) { return NULL; } index = ixmlNamedNodeMap_getItemNumber(nnMap, name); if (index == IXML_INVALID_ITEM_NUMBER) { return NULL; } else { return ixmlNamedNodeMap_item(nnMap, (unsigned long)index); } }