2 // System.Xml.XmlNotation.cs
5 // Duncan Mak (duncan@ximian.com)
15 public class XmlNotation : XmlNode
28 internal XmlNotation (string localName, string prefix, string publicId,
29 string systemId, XmlDocument doc)
32 this.localName = localName;
34 this.publicId = publicId;
35 this.systemId = systemId;
42 public override string InnerXml {
43 get { return String.Empty; }
44 set { throw new InvalidOperationException ("This operation is not allowed."); }
47 public override bool IsReadOnly {
48 get { return true; } // Notation nodes are always read-only
51 public override string LocalName {
52 get { return localName; }
55 public override string Name {
56 get { return prefix + ":" + localName; }
59 public override XmlNodeType NodeType {
60 get { return XmlNodeType.Notation; }
63 public override string OuterXml {
64 get { return String.Empty; }
67 public string PublicId {
76 public string SystemId {
89 public override XmlNode CloneNode (bool deep)
91 throw new InvalidOperationException ("This operation is not allowed.");
94 public override void WriteContentTo (XmlWriter w) { } // has no effect.
96 public override void WriteTo (XmlWriter w) { } // has no effect.