Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the attribute with the specified name.
[Script]
Script Syntax
var objXMLDOMNode = oXMLDOMNamedNodeMap.getNamedItem(name);
Script Parameters
- name
String specifying the name of the attribute.
Script Return Value
Object. Returns IXMLDOMNode object for the specified attribute. Returns Null if the attribute node is not in this collection.
[C/C++]
C/C++ Syntax
HRESULT getNamedItem(BSTRname,IXMLDOMNode** namedItem);
C/C++ Parameters
- name
[in] Name of the attribute. - namedItem
[out, retval] IXMLDOMNode object for the specified attribute. Returns Null if the attribute node is not in this collection.
C/C++ Return Values
- S_OK
Value returned if successful. - S_FALSE
Value when returning Null. - E_INVALIDARG
Value returned if namedItem is Null.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.
General Remarks
This method applies to the following objects and interfaces:
IXMLDOMNamedNodeMap andIXMLDOMNode.
Send Feedback on this topic to the authors