26 switch (base.parentNode.NodeType)
35 XmlNode parentNode = base.parentNode.parentNode;
36 while (parentNode.IsText)
38 parentNode = parentNode.parentNode;
43 return base.parentNode;
50 internal override bool IsText =>
true;
58 if (parentNode.IsText)
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
override string LocalName
Gets the local name of the node.
Represents a CDATA section.
internal XmlCDataSection(string data, XmlDocument doc)
Initializes a new instance of the T:System.Xml.XmlCDataSection class.
virtual XmlDocument OwnerDocument
Gets the T:System.Xml.XmlDocument to which this node belongs.
override XmlNode CloneNode(bool deep)
Creates a duplicate of this node.
XmlNodeType
Specifies the type of node.
override void WriteContentTo(XmlWriter w)
Saves the children of the node to the specified T:System.Xml.XmlWriter.
XPathNodeType
Defines the XPath node types that can be returned from the T:System.Xml.XPath.XPathNavigator class.
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files t...
override XmlNode ParentNode
Gets the parent of this node (for nodes that can have parents).
virtual string Data
Contains the data of the node.
abstract void WriteCData(string text)
When overridden in a derived class, writes out a <![CDATA[...]]> block containing the specified text.
override void WriteTo(XmlWriter w)
Saves the node to the specified T:System.Xml.XmlWriter.
override XmlNodeType NodeType
Gets the type of the current node.
override XmlNode PreviousText
Gets the text node that immediately precedes this node.
Provides text manipulation methods that are used by several classes.
override string Name
Gets the qualified name of the node.
virtual XmlCDataSection CreateCDataSection(string data)
Creates an T:System.Xml.XmlCDataSection containing the specified data.
Represents a single node in the XML document.