mscorlib(4.0.0.0) API with additions
|
Represents the text content of an element or attribute. More...
Public Member Functions | |
override XmlNode | CloneNode (bool deep) |
Creates a duplicate of this node. More... | |
virtual XmlText | SplitText (int offset) |
Splits the node into two nodes at the specified offset, keeping both in the tree as siblings. More... | |
override void | WriteTo (XmlWriter w) |
Saves the node to the specified T:System.Xml.XmlWriter. More... | |
override void | WriteContentTo (XmlWriter w) |
Saves all the children of the node to the specified T:System.Xml.XmlWriter. XmlText nodes do not have children, so this method has no effect. More... | |
![]() | |
virtual string | Substring (int offset, int count) |
Retrieves a substring of the full string from the specified range. More... | |
virtual void | AppendData (string strData) |
Appends the specified string to the end of the character data of the node. More... | |
virtual void | InsertData (int offset, string strData) |
Inserts the specified string at the specified character offset. More... | |
virtual void | DeleteData (int offset, int count) |
Removes a range of characters from the node. More... | |
virtual void | ReplaceData (int offset, int count, string strData) |
Replaces the specified number of characters starting at the specified offset with the specified string. More... | |
![]() | |
virtual XPathNavigator | CreateNavigator () |
Creates an T:System.Xml.XPath.XPathNavigator for navigating this object. More... | |
XmlNode | SelectSingleNode (string xpath) |
Selects the first XmlNode that matches the XPath expression. More... | |
XmlNode | SelectSingleNode (string xpath, XmlNamespaceManager nsmgr) |
Selects the first XmlNode that matches the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied T:System.Xml.XmlNamespaceManager. More... | |
XmlNodeList | SelectNodes (string xpath) |
Selects a list of nodes matching the XPath expression. More... | |
XmlNodeList | SelectNodes (string xpath, XmlNamespaceManager nsmgr) |
Selects a list of nodes matching the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied T:System.Xml.XmlNamespaceManager. More... | |
virtual XmlNode | InsertBefore (XmlNode newChild, XmlNode refChild) |
Inserts the specified node immediately before the specified reference node. More... | |
virtual XmlNode | InsertAfter (XmlNode newChild, XmlNode refChild) |
Inserts the specified node immediately after the specified reference node. More... | |
virtual XmlNode | ReplaceChild (XmlNode newChild, XmlNode oldChild) |
Replaces the child node oldChild with newChild node. More... | |
virtual XmlNode | RemoveChild (XmlNode oldChild) |
Removes specified child node. More... | |
virtual XmlNode | PrependChild (XmlNode newChild) |
Adds the specified node to the beginning of the list of child nodes for this node. More... | |
virtual XmlNode | AppendChild (XmlNode newChild) |
Adds the specified node to the end of the list of child nodes, of this node. More... | |
virtual void | Normalize () |
Puts all XmlText nodes in the full depth of the sub-tree underneath this XmlNode into a "normal" form where only markup (that is, tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes. More... | |
virtual bool | Supports (string feature, string version) |
Tests if the DOM implementation implements a specific feature. More... | |
virtual XmlNode | Clone () |
Creates a duplicate of this node. More... | |
IEnumerator | GetEnumerator () |
Get an enumerator that iterates through the child nodes in the current node. More... | |
virtual void | RemoveAll () |
Removes all the child nodes and/or attributes of the current node. More... | |
virtual string | GetNamespaceOfPrefix (string prefix) |
Looks up the closest xmlns declaration for the given prefix that is in scope for the current node and returns the namespace URI in the declaration. More... | |
virtual string | GetPrefixOfNamespace (string namespaceURI) |
Looks up the closest xmlns declaration for the given namespace URI that is in scope for the current node and returns the prefix defined in that declaration. More... | |
Public Attributes | |
override string | Name => OwnerDocument.strTextName |
Gets the qualified name of the node. More... | |
override string | LocalName => OwnerDocument.strTextName |
Gets the local name of the node. More... | |
override XmlNodeType | NodeType => XmlNodeType.Text |
Gets the type of the current node. More... | |
![]() | |
virtual XmlNodeList | ChildNodes => new XmlChildNodes(this) |
Gets all the child nodes of the node. More... | |
virtual XmlNode | PreviousSibling => null |
Gets the node immediately preceding this node. More... | |
virtual XmlNode | NextSibling => null |
Gets the node immediately following this node. More... | |
virtual XmlAttributeCollection | Attributes => null |
Gets an T:System.Xml.XmlAttributeCollection containing the attributes of this node. More... | |
virtual XmlNode | FirstChild => LastNode?.next |
Gets the first child of the node. More... | |
virtual XmlNode | LastChild => LastNode |
Gets the last child of the node. More... | |
virtual bool | HasChildNodes => LastNode != null |
Gets a value indicating whether this node has any child nodes. More... | |
virtual string | NamespaceURI => string.Empty |
Gets the namespace URI of this node. More... | |
virtual IXmlSchemaInfo | SchemaInfo => XmlDocument.NotKnownSchemaInfo |
Gets the post schema validation infoset that has been assigned to this node as a result of schema validation. More... | |
virtual XmlNode | PreviousText => null |
Gets the text node that immediately precedes this node. More... | |
Protected Member Functions | |
internal | XmlText (string strData, XmlDocument doc) |
Initializes a new instance of the T:System.Xml.XmlText class. More... | |
![]() | |
internal | XmlCharacterData (string data, XmlDocument doc) |
Initializes a new instance of the T:System.Xml.XmlCharacterData class. More... | |
Properties | |
override XmlNode | ParentNode [get] |
Gets the parent of this node (for nodes that can have parents). More... | |
override string | Value [get, set] |
Gets or sets the value of the node. More... | |
override XmlNode | PreviousText [get] |
Gets the text node that immediately precedes this node. More... | |
![]() | |
override string | Value [get, set] |
Gets or sets the value of the node. More... | |
override string | InnerText [get, set] |
Gets or sets the concatenated values of the node and all the children of the node. More... | |
virtual string | Data [get, set] |
Contains the data of the node. More... | |
virtual int | Length [get] |
Gets the length of the data, in characters. More... | |
![]() | |
override XmlNode | PreviousSibling [get] |
Gets the node immediately preceding this node. More... | |
override XmlNode | NextSibling [get] |
Gets the node immediately following this node. More... | |
![]() | |
abstract string | Name [get] |
Gets the qualified name of the node, when overridden in a derived class. More... | |
virtual string | Value [get, set] |
Gets or sets the value of the node. More... | |
abstract XmlNodeType | NodeType [get] |
Gets the type of the current node, when overridden in a derived class. More... | |
virtual XmlNode | ParentNode [get] |
Gets the parent of this node (for nodes that can have parents). More... | |
virtual XmlDocument | OwnerDocument [get] |
Gets the T:System.Xml.XmlDocument to which this node belongs. More... | |
virtual string | Prefix [get, set] |
Gets or sets the namespace prefix of this node. More... | |
abstract string | LocalName [get] |
Gets the local name of the node, when overridden in a derived class. More... | |
virtual bool | IsReadOnly [get] |
Gets a value indicating whether the node is read-only. More... | |
virtual string | InnerText [get, set] |
Gets or sets the concatenated values of the node and all its child nodes. More... | |
virtual string | OuterXml [get] |
Gets the markup containing this node and all its child nodes. More... | |
virtual string | InnerXml [get, set] |
Gets or sets the markup representing only the child nodes of this node. More... | |
virtual string | BaseURI [get] |
Gets the base URI of the current node. More... | |
virtual XmlElement | this[string name] [get] |
Gets the first child element with the specified P:System.Xml.XmlNode.Name. More... | |
virtual XmlElement | this[string localname, string ns] [get] |
Gets the first child element with the specified P:System.Xml.XmlNode.LocalName and P:System.Xml.XmlNode.NamespaceURI. More... | |
Represents the text content of an element or attribute.
Definition at line 6 of file XmlText.cs.
|
protected |
Initializes a new instance of the T:System.Xml.XmlText class.
strData | The content of the node; see the P:System.Xml.XmlText.Value property. |
doc | The parent XML document. |
Definition at line 97 of file XmlText.cs.
|
virtual |
Creates a duplicate of this node.
deep | true to recursively clone the subtree under the specified node; false to clone only the node itself. |
Implements System.Xml.XmlNode.
Definition at line 106 of file XmlText.cs.
|
virtual |
Splits the node into two nodes at the specified offset, keeping both in the tree as siblings.
offset | The offset at which to split the node. |
Definition at line 114 of file XmlText.cs.
|
virtual |
Saves all the children of the node to the specified T:System.Xml.XmlWriter. XmlText
nodes do not have children, so this method has no effect.
w | The XmlWriter to which you want to save. |
Implements System.Xml.XmlNode.
Definition at line 143 of file XmlText.cs.
|
virtual |
Saves the node to the specified T:System.Xml.XmlWriter.
w | The XmlWriter to which you want to save. |
Implements System.Xml.XmlNode.
Definition at line 136 of file XmlText.cs.
override string System.Xml.XmlText.LocalName => OwnerDocument.strTextName |
Gets the local name of the node.
#text
.Definition at line 14 of file XmlText.cs.
override string System.Xml.XmlText.Name => OwnerDocument.strTextName |
Gets the qualified name of the node.
#text
.Definition at line 10 of file XmlText.cs.
override XmlNodeType System.Xml.XmlText.NodeType => XmlNodeType.Text |
Gets the type of the current node.
Definition at line 18 of file XmlText.cs.
|
get |
Gets the parent of this node (for nodes that can have parents).
XmlNode
that is the parent of the current node. If a node has just been created and not yet added to the tree, or if it has been removed from the tree, the parent is null
. For all other nodes, the value returned depends on the P:System.Xml.XmlNode.NodeType of the node. The following table describes the possible return values for the ParentNode
property.Definition at line 23 of file XmlText.cs.
|
get |
Gets the text node that immediately precedes this node.
Definition at line 78 of file XmlText.cs.
|
getset |
Gets or sets the value of the node.
Definition at line 51 of file XmlText.cs.