AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.14.0-alpha-790" />

.NET API 829,440 bytes

 INode

public interface INode : IEventTarget, IMarkupFormattable
A Node is an interface from which a number of DOM types inherit, and allows these various types to be treated similarly.
string BaseUri { get; }

Gets a string representing the base URL.

Url BaseUrl { get; }

Gets the base url.

Gets a live NodeList containing all the children of this node. Being live means that if the children of the node change, the NodeList object is automatically updated.

INode FirstChild { get; }

Gets a Node representing the first direct child node of the node, or null if the node has no child.

NodeFlags Flags { get; }

Gets the associated node flags.

bool HasChildNodes { get; }

Gets an indicator if the element has any child nodes, or not.

INode LastChild { get; }

Gets a node representing the last direct child node of the node, or null if the node has no child.

INode NextSibling { get; }

Gets a Node representing the next node in the tree, or null if there isn't such node.

string NodeName { get; }

Gets a string containing the name of the Node. The structure of the name will differ with the name type.

NodeType NodeType { get; }

Gets an unsigned short representing the type of the node.

string NodeValue { get; set; }

Gets or sets a string representing the value of an object. For most node types, this returns null and any set operation is ignored.

IDocument Owner { get; }

Gets the Document that this node belongs to. If no document is associated with it, returns null.

INode Parent { get; }

Gets a node that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns null.

Gets an Element that is the parent of this node. If the node has no parent, or if that parent is not an Element, this property returns null.

Gets a Node representing the previous node in the tree, or null if there isn't such node.

string TextContent { get; set; }

Gets or sets the textual content of an element and all its descendants.

Inserts a node as the last child node of this element.

INode Clone(bool deep = true)

Clones the node, and optionally, all of its contents. By default, it clones the content of the node.

Compares the position of two nodes in a document.

bool Contains(INode otherNode)

Returns true if other is an inclusive descendant of the context object, and false otherwise (including when other is null).

bool Equals(INode otherNode)

Determines if two nodes are equal.

INode InsertBefore(INode newElement, INode referenceElement)

Inserts the newElement immediately before the referenceElement.

bool IsDefaultNamespace(string namespaceUri)

Indicates whether or not a namespace is the default namespace for a document.

string LookupNamespaceUri(string prefix)

Gets the Uniform Resource Identifier (URI) of the namespace associated with a namespace prefix, if any.

string LookupPrefix(string namespaceUri)

Gets the namespace prefix associated with a Uniform Resource Identifier (URI), if any.

void Normalize()

Cleans up all the text nodes under this element, i.e. merges adjacent and removes empty text nodes.

Removes a child node from the current element, which must be a child of the current node.

INode ReplaceChild(INode newChild, INode oldChild)

Replaces one child node of the current one with the second one given in the parameters.