Node.NodeName

Node.NodeName property

Returns the name of the current node as a string.

public abstract string NodeName { get; }

Property Value

A string, values for the different types of nodes are:

Attr - The value of Attr.name, that is the qualified name of the attribute.CDATASection - The string “#cdata-section”.Comment - The string “#comment”.Document - The string “#document”.DocumentFragment - The string “#document-fragment”.DocumentType - The value of NameElement - The value of TagName, that is the uppercase name of the element tag if an HTML element, or the lowercase element tag if an XML element (like an SVG or MATHML element).ProcessingInstruction - The value of TargetText - The string “#text”.

Remarks

Reference:

DOM Standard.

See Also