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
public abstract string NodeName { get; }

Property Value

Type: String

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

  • Attr - The value of, 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
  • 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
  • Text - The string "#text".

Return Value

Type: String


See Also