Files
mono/mcs/class/System.XML/System.Xml/XmlCDataSection.cs
T
Duncan Mak b9e2f23ea5 2002-03-22 Duncan Mak <[email protected]>
* XmlElement.cs: Reformatted.
	(CloneNode) Corrected.

	* XmlDocument.cs (CreateWhitespace): Implemented.

	* XmlAttribute.cs (CloneNode): Changed the child's CloneNode to
	true, because Attributes have ChildNodes.

2002-03-22  Duncan Mak  <[email protected]>

	* AllTests.cs:
	* Microsoft.Test.csproj:
	* Mono.Test.csproj: Updated to include new files.

	* XmlCDataSectionTests.cs: Added to CVS.

	* XmlCommentTests.cs: Added to CVS. hanks to Kral for helping me
	setup a testing environment on VS.NET.

	* XmlElementTests.cs: Reformatted.
	(TestCloneNode): Added.

	* XmlWhiteSpaceTests.cs: Added to CVS.

svn path=/trunk/mcs/; revision=3267
2002-03-22 02:38:08 +00:00

55 lines
905 B
C#

//
// System.Xml.XmlCDataSection.cs
//
// Author: Duncan Mak ([email protected])
//
// (C) Ximian, Inc.
//
namespace System.Xml
{
public class XmlCDataSection : XmlCharacterData
{
#region Constructors
protected internal XmlCDataSection (string data, XmlDocument doc)
: base (data, doc)
{
}
#endregion
#region Properties
public override string LocalName {
get { return "#cdata-section"; }
}
public override string Name {
get { return "#cdata-section"; }
}
public override XmlNodeType NodeType {
get { return XmlNodeType.CDATA; }
}
#endregion
#region Methods
public override XmlNode CloneNode (bool deep)
{
return new XmlCDataSection (Data, OwnerDocument); // CDATA nodes have no children.
}
public override void WriteContentTo (XmlWriter w) { }
public override void WriteTo (XmlWriter w)
{
w.WriteCData (Data);
}
#endregion
}
}