Table of Contents

Interface IElement

Namespace
SharpVectors.Dom
Assembly
SharpVectors.Core.dll

The IElement interface represents an element in an HTML or XML document.

public interface IElement : IXmlElement, INode, IXmlNode
Inherited Members

Remarks

Elements may have attributes associated with them; since the IElement interface inherits from INode, the generic INode interface attribute IAttribute may be used to retrieve the set of all attributes for an element. There are methods on the IElement interface to retrieve either an IAttribute object by name or an attribute value by name. In XML, where an attribute value may contain entity references, an IAttribute object should be retrieved to examine the possibly fairly complex sub-tree representing the attribute value. On the other hand, in HTML, where all attributes have simple string values, methods to directly access an attribute value can safely be used as a convenience.In DOM Level 2, the method Normalize() is inherited from the INode interface where it was moved.

See Also