Files
mono/mcs/class/System.XML/System.Xml/XmlText.cs
T
Piers Haken 04d50fc445 2002-10-26 Piers Haken <[email protected]>
* XmlNode.cs: add virtual property XPathNodeType
	* XmlAttribute.cs:
	* XmlComment.cs:
	* XmlDocument.cs:
	* XmlElement.cs::
	* XmlProcessingInstruction.cs:
	* XmlSignificantWhitespace.cs:
	* XmlText.cs:
	* XmlWhitespace.cs: implement XPathNodeType property
	* XmlDocumentNavigator.cs: use XPathNodeType property instead of switch

svn path=/trunk/mcs/; revision=8585
2002-10-26 23:06:29 +00:00

77 lines
1.2 KiB
C#

//
// System.Xml.XmlText
//
// Author:
// Jason Diamond <[email protected]>
//
// (C) 2002 Jason Diamond http://injektilo.org/
//
using System;
using System.Xml.XPath;
namespace System.Xml
{
public class XmlText : XmlCharacterData
{
#region Constructor
protected internal XmlText (string strData, XmlDocument doc) : base(strData, doc)
{
}
#endregion
#region Properties
public override string LocalName
{
get { return "#text"; }
}
public override string Name {
get { return "#text"; }
}
public override XmlNodeType NodeType {
get { return XmlNodeType.Text; }
}
internal override XPathNodeType XPathNodeType {
get {
return XPathNodeType.Text;
}
}
public override string Value {
get { return Data; }
set { Data = value; }
}
#endregion
#region Methods
[MonoTODO]
public override XmlNode CloneNode (bool deep)
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual XmlText SplitText (int offset)
{
throw new NotImplementedException ();
}
public override void WriteContentTo (XmlWriter w) {}
public override void WriteTo (XmlWriter w)
{
w.WriteString (Data);
}
#endregion
}
}