#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;
public string Data
{
- get {
- return data;
- }
+ get { return data; }
- set {
- data = value;
- }
+ set { data = value; }
+ }
+
+ [MonoTODO]
+ public override string InnerText
+ {
+ get { throw new NotImplementedException (); }
+ set { throw new NotImplementedException (); }
}
public override string LocalName
{
- get {
- return target;
- }
+ get { return target; }
}
public override string Name
{
- get {
- return target;
- }
+ get { return target; }
}
public override XmlNodeType NodeType
{
- get {
- return XmlNodeType.ProcessingInstruction;
- }
+ get { return XmlNodeType.ProcessingInstruction; }
}
public string Target
{
- get {
- return target;
- }
+ get { return target; }
}
public override string Value
{
- get {
- return data;
+ get { return data; }
+ set {
+ if (this.IsReadOnly)
+ throw new ArgumentException ("This node is read-only.");
+ else
+ data = value;
}
}
#region Methods
- public override XmlNode CloneNode(bool deep)
+ public override XmlNode CloneNode (bool deep)
{
- return new XmlProcessingInstruction(target, data, OwnerDocument);
+ return new XmlProcessingInstruction (target, data, OwnerDocument);
}
- [MonoTODO]
- public override void WriteContentTo(XmlWriter w)
- {
- throw new NotImplementedException ();
- }
+ public override void WriteContentTo (XmlWriter w) { }
- [MonoTODO]
- public override void WriteTo(XmlWriter w)
+ public override void WriteTo (XmlWriter w)
{
- throw new NotImplementedException ();
+ w.WriteProcessingInstruction (target, data);
}
#endregion