Class DocumentTreeNode
Represents a node in the document tree. A node corresponds to a loaded XML document and keeps references to related documents (schema refs, imports, linkbase refs, locs) as child nodes.
public class DocumentTreeNode
- Inheritance
-
DocumentTreeNode
- Inherited Members
Properties
Ancestors
Enumerates ancestor nodes from parent to the top.
public IEnumerable<DocumentTreeNode> Ancestors { get; }
Property Value
Children
Returns direct child nodes combined from SchemaRefs, Imports, LinkbaseRefs and Locs in that order.
public DocumentTreeNode[] Children { get; }
Property Value
Distance
Distance (depth) from the root. Root is0.
public int Distance { get; }
Property Value
Document
The loaded XDocument for this node.
public XDocument Document { get; }
Property Value
Imports
Imported schema nodes.
public DocumentTreeNode[] Imports { get; }
Property Value
LinkbaseRefs
Linkbase reference nodes.
public DocumentTreeNode[] LinkbaseRefs { get; }
Property Value
Locs
Nodes corresponding to link:loc entries.
public DocumentTreeNode[] Locs { get; }
Property Value
NodeKind
The kind of document stored in this node.
public DocumentTreeNode.DocumentKind NodeKind { get; }
Property Value
Parent
Parent node (null for root).
public DocumentTreeNode? Parent { get; }
Property Value
SchemaRefs
Nodes referenced via schemaRef / xsd:import etc. Empty array when unset.
public DocumentTreeNode[] SchemaRefs { get; }
Property Value
URI
The URI of the document represented by this node.
public Uri URI { get; }