mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* 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
55 lines
905 B
C#
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
|
|
}
|
|
}
|