NodeNodeName Property

The read-only nodeName property of Node returns the name of the current node as a string.

Namespace: Aspose.Html.Dom
Assembly: Aspose.HTML (in Aspose.HTML.dll) Version: 22.1
Syntax
public abstract string NodeName { get; }

Property Value

Type: String

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 DocumentType.name
  • Element - The value of Element.tagName, that is the uppercase name of the element tag if an HTML element, or the lowercase element tag if an XML element (like a SVG or MATHML element).
  • ProcessingInstruction - The value of ProcessingInstruction.target
  • Text - The string "#text".

Return Value

Type: String
Remarks

Reference:

See Also