MoveToAttribute* Fix 'if' brackets.
[mono.git] / mcs / class / System.XML / System.Xml / XmlProcessingInstruction.cs
index 440c9f4b101149be9a75b4180baf6398b090fe84..f9a1f2e607c614db5c33264f06ee41ff76054404 100644 (file)
@@ -18,8 +18,7 @@ namespace System.Xml
 
                #region Constructors
 
-               protected internal XmlProcessingInstruction (string target, string data, XmlDocument doc)
-                       : base(doc)
+               protected internal XmlProcessingInstruction (string target, string data, XmlDocument doc) : base(doc)
                {
                        this.target = target;
                        this.data = data;
@@ -36,11 +35,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
@@ -87,7 +85,7 @@ namespace System.Xml
 
                public override void WriteTo (XmlWriter w)
                {
-                       w.WriteProcessingInstruction(target, data);
+                       w.WriteProcessingInstruction (target, data);
                }
 
                #endregion