Document class

The Document represents the entire inline xbrl document. Conceptually, it is the root of the document tree, and provides the primary access to the document’s data.

public class Document : Node


Document()The default constructor.


virtual BaseURI { get; }Gets the absolute base URI of this node or null if the implementation wasn’t able to obtain an absolute URI.
CharacterSet { get; }Gets the document’s encoding.
ChildElements { get; }Gets the child elements.
ChildNodes { get; }Gets the child nodes.
ContentType { get; }Gets the document content type.
DocumentElement { get; }This is a convenience attribute that allows direct access to the child node that is the document element of the document.
DocumentURI { get; }Gets the document URI.
FirstChild { get; }Gets the first child of this node. If there is no such node, this returns null.
HasChildNodes { get; }Gets whether this node has any children.
LastChild { get; }Gets the last child of this node. If there is no such node, this returns null.
virtual LocalName { get; }Gets the local part of the qualified name of this node.
virtual NamespaceURI { get; }Gets the namespace URI of this node.
NextSibling { get; }Gets the node immediately following this node. If there is no such node, this returns null.
override NodeName { get; }Gets the node name of the document.
NodeType { get; }Gets the node type.
virtual NodeValue { get; set; }Gets or sets the value of this node, depending on its type.
OwnerDocument { get; }Gets the document object associated with this node.
ParentNode { get; }Gets the parent node.
virtual Prefix { get; set; }Gets or sets the namespace prefix of this node.
PreviousSibling { get; }Gets the node immediately preceding this node. If there is no such node, this returns null.
virtual TextContent { get; set; }Gets or sets the the text content of this node and its descendants.


AppendChild(Node)Adds the node newChild to the end of the list of children of this node.
RemoveChild(Node)Removes the child node indicated by old child from the list of children.
ReplaceChild(Node, Node)Replaces the child node old child with new child in the list of children, and returns the old child node.

See Also