using System; using System.Collections.Generic; [Serializable] public class XMLText : IXMLNode { public XMLText(string text, IXMLNode parent) { this.valueString = text; this.parentNode = parent; if (parent != null) { parent.Children.Add(this); } } public string value { get { return this.valueString; } set { this.valueString = value; } } public XMLNodeType type { get { return XMLNodeType.Text; } } public IXMLNode Parent { get { return this.parentNode; } } public List Children { get { return new List(); } set { } } public List Attributes { get { return new List(); } set { } } public override string ToString() { return this.valueString; } protected string valueString; protected IXMLNode parentNode; }