2 // System.Xml.XmlProcessingInstruction
5 // Kral Ferch <kral_ferch@hotmail.com>
11 using System.Xml.XPath;
15 public class XmlProcessingInstruction : XmlLinkedNode
22 protected internal XmlProcessingInstruction (string target, string data, XmlDocument doc) : base(doc)
42 public override string InnerText
48 public override string LocalName
50 get { return target; }
53 public override string Name
55 get { return target; }
58 public override XmlNodeType NodeType
60 get { return XmlNodeType.ProcessingInstruction; }
63 internal override XPathNodeType XPathNodeType {
65 return XPathNodeType.ProcessingInstruction;
71 get { return target; }
74 public override string Value
79 throw new ArgumentException ("This node is read-only.");
89 public override XmlNode CloneNode (bool deep)
91 return new XmlProcessingInstruction (target, data, OwnerDocument);
94 public override void WriteContentTo (XmlWriter w) { }
96 public override void WriteTo (XmlWriter w)
98 w.WriteProcessingInstruction (target, data);