Interface IDocument
Abstraction for a DOM document.
Namespace: ZptSharp.Dom
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IDocument : IHasDocumentSourceInfo, IHasNodes
Properties
| Improve this Doc View SourceRootNode
Gets the root node for the current document.
Declaration
INode RootNode { get; }
Property Value
Type | Description |
---|---|
INode | The root node. |
Methods
| Improve this Doc View SourceAddCommentToBeginningOfDocument(String)
Where-supported, adds a comment before the first node node in the document. In cases where the underlying document implementation does not support this, a workaround is acceptable (such as commenting immediately inside the first node).
Declaration
void AddCommentToBeginningOfDocument(string commentText)
Parameters
Type | Name | Description |
---|---|---|
System.String | commentText |