26 switch (base.parentNode.NodeType)
35 XmlNode parentNode = base.parentNode.parentNode;
36 while (parentNode.IsText)
38 parentNode = parentNode.parentNode;
43 return base.parentNode;
50 public override string Value 59 XmlNode parentNode = base.parentNode;
62 XmlUnspecifiedAttribute xmlUnspecifiedAttribute = parentNode as XmlUnspecifiedAttribute;
63 if (xmlUnspecifiedAttribute !=
null && !xmlUnspecifiedAttribute.Specified)
65 xmlUnspecifiedAttribute.SetSpecified(f:
true);
73 internal override bool IsText =>
true;
81 if (parentNode.IsText)
89 internal XmlText(
string strData)
122 if (parentNode ==
null)
126 int count = length - offset;
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
virtual void DeleteData(int offset, int count)
Removes a range of characters from the node.
virtual XmlDocument OwnerDocument
Gets the T:System.Xml.XmlDocument to which this node belongs.
The exception that is thrown when the value of an argument is outside the allowable range of values a...
override void WriteContentTo(XmlWriter w)
Saves all the children of the node to the specified T:System.Xml.XmlWriter. XmlText nodes do not have...
virtual int Length
Gets the length of the data, in characters.
XmlNodeType
Specifies the type of node.
abstract void WriteString(string text)
When overridden in a derived class, writes the given text content.
override void WriteTo(XmlWriter w)
Saves 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 XmlNodeType NodeType
Gets the type of the current node.
override XmlNode PreviousText
Gets the text node that immediately precedes this node.
virtual XmlText CreateTextNode(string text)
Creates an T:System.Xml.XmlText with the specified text.
virtual XmlText SplitText(int offset)
Splits the node into two nodes at the specified offset, keeping both in the tree as siblings.
override string Name
Gets the qualified name of the 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 this node (for nodes that can have parents).
Represents the text content of an element or attribute.
internal XmlText(string strData, XmlDocument doc)
Initializes a new instance of the T:System.Xml.XmlText class.
Provides text manipulation methods that are used by several classes.
The exception that is thrown when a method call is invalid for the object's current state.
override XmlNode CloneNode(bool deep)
Creates a duplicate of this node.
virtual XmlNode InsertAfter(XmlNode newChild, XmlNode refChild)
Inserts the specified node immediately after the specified reference node.
override string LocalName
Gets the local name of the node.
Represents a single node in the XML document.
virtual string Substring(int offset, int count)
Retrieves a substring of the full string from the specified range.
abstract XmlNodeType NodeType
Gets the type of the current node, when overridden in a derived class.