Table of Contents

Interface INode

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

The INode interface is the primary datatype for the entire Document Object Model. It represents a single node in the document tree.

public interface INode : IXmlNode
Inherited Members

Remarks

While all objects implementing the INode interface expose methods for dealing with children, not all objects implementing the INode interface may have children. For example, IText nodes may not have children, and adding children to such nodes results in a DomException being raised.

The attributes Name, Value and Attributes are included as a mechanism to get at node information without casting down to the specific derived interface. In cases where there is no obvious mapping of these attributes for a specific NodeType (e.g., Value for an IElement or Attributes for a IComment), this returns null. Note that the specialized interfaces may contain additional and more convenient mechanisms to get and set the relevant information.

See Also