getElementsByTagNameNS method

Gets a collection of nodes that match an element name from the specified namespace.

 

Syntax

HRESULT retVal = object.getElementsByTagNameNS(pvarNS, bstrLocalName, pelColl);

Parameters

  • pvarNS [in]
    Type: VARIANT

    A BSTR value that contains the name of the desired namespace.

  • bstrLocalName [in]
    Type: BSTR

    A BSTR value that contains the name of the element or an asterisk (*) to return all elements within the namespace.

  • pelColl [out, retval]
    Type: IHTMLElementCollection

    A reference to an IHTMLElementCollection interface that lists nodes that match the specified name.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Standards information