2002-10-18 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / System.XML / System.Xml / XmlProcessingInstruction.cs
index 47ffe04392e1caca9ab12189c1a2a809e435fe5e..c328935a7feb8f44cf52a6dd55e98d3cef4a1df7 100644 (file)
@@ -20,6 +20,9 @@ namespace System.Xml
 
                protected internal XmlProcessingInstruction (string target, string data, XmlDocument doc) : base(doc)
                {
+                       if (data == null)
+                               data = String.Empty;
+
                        this.target = target;
                        this.data = data;
                }
@@ -35,11 +38,10 @@ namespace System.Xml
                        set { data = value; }
                }
 
-               [MonoTODO]
                public override string InnerText
                {
-                       get { throw new NotImplementedException (); }
-                       set { throw new NotImplementedException (); }
+                       get { return Data; }
+                       set { data = value; }
                }
 
                public override string LocalName