*** empty log message ***
[mono.git] / mcs / class / System.XML / System.Xml / XmlComment.cs
index c7ca111ff9bdf08b6cb6299f680909ac4bb5faa6..a515a1a95f9cdd18a7d4970a347e127bb3612869 100644 (file)
@@ -8,6 +8,7 @@
 //
 
 using System;
+using System.Xml.XPath;
 
 namespace System.Xml
 {
@@ -15,7 +16,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
 
@@ -33,13 +37,20 @@ namespace System.Xml
                        get { return XmlNodeType.Comment; }
                }
                
+               internal override XPathNodeType XPathNodeType {
+                       get {
+                               return XPathNodeType.Comment;
+                       }
+               }
+
                #endregion
 
                #region Methods
 
                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) { }