O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

XmlText

Synopsis

This class represents a text node in an XML document. XmlText is derived from theXmlCharacterData class, and contains the text content of an element.

public class XmlText : XmlCharacterData {
// Protected Constructors
   protected internal method XmlText(string strData, 
        XmlDocument doc);  
// Public Instance Properties
   public override field string LocalName{get; }                 // overrides XmlNode
   public override field string Name{get; }                      // overrides XmlNode
   public override field XmlNodeType NodeType{get; }             // overrides XmlNode
   public override field string Value{set; get; }                // overrides XmlCharacterData
                  // Public Instance Methods
   public override method XmlNode CloneNode(bool deep);         // overrides XmlNode
   public virtual method XmlText SplitText(int offset);  
   public override method void WriteContentTo(XmlWriter w);     // overrides XmlNode
   public override method void WriteTo(XmlWriter w);            // overrides XmlNode
}

Hierarchy

System.ObjectXmlNode(System.ICloneable, System.Collections.IEnumerable, System.Xml.XPath.IXPathNavigable)XmlLinkedNodeXmlCharacterDataXmlText

Returned By

XmlDocument.CreateTextNode()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required