2002-06-18 Ajay kumar Dwivedi <adwiv@yahoo.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlComment.cs
index c7ca111ff9bdf08b6cb6299f680909ac4bb5faa6..4c83ebab0e6f350a25e9548b6c98eadbf344ba11 100644 (file)
@@ -15,7 +15,10 @@ namespace System.Xml
        {
                #region Constructors
 
-               protected internal XmlComment (string comment, XmlDocument doc) : base(comment, doc) { }
+               protected internal XmlComment (string comment, XmlDocument doc)
+                       : base (comment, doc)
+               {
+               }
 
                #endregion
 
@@ -39,7 +42,8 @@ namespace System.Xml
 
                public override XmlNode CloneNode (bool deep)
                {
-                       return new XmlComment(Value, OwnerDocument);
+                       // discard deep because Comments have no children.
+                       return new XmlComment(Value, OwnerDocument); 
                }
 
                public override void WriteContentTo (XmlWriter w) { }