Partager via


tagName Property (Compact 2013)

3/26/2014

Contains the element name.

Syntax

strValue = oXMLDOMElement.tagName;
HRESULT get_tagName(  BSTR* tagName);

Parameters

Script

None.

C/C++

  • tagName
    [out, retval] String that represents the element's name. For example, the tag name is "book" in the following tag.

    <book ISBN="1572318546">
    

Return Value

Script

String. It contains the string that represents the element's name. For example, the tag name is "book" in the following tag.

<book ISBN="1572318546">

C/C++

  • S_OK
    Value returned if successful.
  • S_FALSE
    Value when returning Null.
  • E_INVALIDARG
    Value returned if tagName is Null.

Remarks

This property is read-only, and applies to the following interface:

IXMLDOMElement

Requirements

Header

msxml2.h,
msxml2.idl

See Also

Reference

XML DOM Properties