2 // System.Xml.XmlDocumentType.cs
\r
4 // Author: Duncan Mak (duncan@ximian.com)
\r
11 public class XmlDocumentType : XmlLinkedNode
\r
14 string name; // name of the document type
\r
15 string publicId; // public identifier on the DOCTYPE
\r
16 string systemId; // system identifier on the DOCTYPE
\r
17 string internalSubset; // value of the DTD internal subset
\r
20 protected internal XmlDocumentType (string name, string publicId,
\r
21 string systemId, string internalSubset,
\r
26 this.publicId = publicId;
\r
27 this.systemId = systemId;
\r
28 this.internalSubset = internalSubset;
\r
34 public XmlNamedNodeMap Entities
\r
36 get { return null; }
\r
39 public string InternalSubset
\r
41 get { return internalSubset; }
\r
44 public override bool IsReadOnly
\r
46 get { return true; } // always return true
\r
49 public override string LocalName
\r
51 get { return name; }
\r
54 public override string Name
\r
56 get { return name; }
\r
59 public override XmlNodeType NodeType
\r
61 get { return XmlNodeType.DocumentType; }
\r
65 public XmlNamedNodeMap Notations
\r
67 get { return null; }
\r
70 public string PublicId
\r
72 get { return publicId; }
\r
75 public string SystemId
\r
77 get { return systemId; }
\r
81 public override XmlNode CloneNode (bool deep)
\r
84 return new XmlDocumentType (name, publicId, systemId,
\r
85 internalSubset, OwnerDocument);
\r
88 public override void WriteContentTo (XmlWriter w)
\r
94 public override void WriteTo (XmlWriter w)
\r