26 switch (base.parentNode.NodeType)
35 XmlNode parentNode = base.parentNode.parentNode;
36 while (parentNode.IsText)
38 parentNode = parentNode.parentNode;
43 return base.parentNode;
51 public override string Value 59 if (CheckOnData(value))
73 DecideXPNodeTypeForTextNodes(
this, ref xnt);
78 internal override bool IsText =>
true;
86 if (parentNode.IsText)
100 if (!doc.IsLoading && !CheckOnData(strData))
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
override XmlNodeType NodeType
Gets the type of the node.
override string Name
Gets the qualified name of the node.
override XmlNode PreviousText
Gets the text node that immediately precedes this node.
virtual XmlDocument OwnerDocument
Gets the T:System.Xml.XmlDocument to which this node belongs.
Represents white space in element content.
internal XmlWhitespace(string strData, XmlDocument doc)
Initializes a new instance of the T:System.Xml.XmlWhitespace class.
override XmlNode CloneNode(bool deep)
Creates a duplicate of this node.
abstract void WriteWhitespace(string ws)
When overridden in a derived class, writes out the given white space.
XmlNodeType
Specifies the type of node.
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...
virtual XmlWhitespace CreateWhitespace(string text)
Creates an T:System.Xml.XmlWhitespace node.
virtual string Data
Contains the data of the node.
override string Value
Gets or sets the value of the node.
override XmlNode ParentNode
Gets the parent of the current node.
The exception that is thrown when one of the arguments provided to a method is not valid.
override string LocalName
Gets the local name of the node.
Provides text manipulation methods that are used by several classes.
override void WriteTo(XmlWriter w)
Saves the node to the specified T:System.Xml.XmlWriter.
override XmlNode ParentNode
Gets the parent node of this node (for nodes that can have parents).
override void WriteContentTo(XmlWriter w)
Saves all the children of the node to the specified T:System.Xml.XmlWriter.
Represents a single node in the XML document.