2 // System.Xml.XmlNotation.cs
5 // Duncan Mak (duncan@ximian.com)
15 public class XmlNotation : XmlNode
23 XmlLinkedNode lastChild;
29 internal XmlNotation (string localName, string prefix, string publicId,
30 string systemId, XmlDocument doc)
33 this.localName = localName;
35 this.publicId = publicId;
36 this.systemId = systemId;
43 public override string InnerXml {
44 get { return String.Empty; }
45 set { throw new InvalidOperationException ("This operation is not allowed."); }
48 public override bool IsReadOnly {
49 get { return true; } // Notation nodes are always read-only
52 internal override XmlLinkedNode LastLinkedChild {
53 get { return lastChild; }
55 set { lastChild = value; }
58 public override string LocalName {
59 get { return localName; }
62 public override string Name {
63 get { return prefix + ":" + localName; }
66 public override XmlNodeType NodeType {
67 get { return XmlNodeType.Notation; }
70 public override string OuterXml {
71 get { return String.Empty; }
74 public string PublicId {
83 public string SystemId {
96 public override XmlNode CloneNode (bool deep)
98 throw new InvalidOperationException ("This operation is not allowed.");
101 public override void WriteContentTo (XmlWriter w) { } // has no effect.
103 public override void WriteTo (XmlWriter w) { } // has no effect.