Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlDocumentType.cs
Go to the documentation of this file.
2
3namespace System.Xml;
4
6{
7 private readonly string _name;
8
9 private readonly string _publicId;
10
11 private readonly string _systemId;
12
13 private readonly string _internalSubset;
14
15 private bool _namespaces;
16
18
20
22
23 public override string Name => _name;
24
25 public override string LocalName => _name;
26
27 public override XmlNodeType NodeType => XmlNodeType.DocumentType;
28
29 public override bool IsReadOnly => true;
30
32 {
33 get
34 {
35 if (_entities == null)
36 {
37 _entities = new XmlNamedNodeMap(this);
38 }
39 return _entities;
40 }
41 }
42
44 {
45 get
46 {
47 if (_notations == null)
48 {
49 _notations = new XmlNamedNodeMap(this);
50 }
51 return _notations;
52 }
53 }
54
55 public string? PublicId => _publicId;
56
57 public string? SystemId => _systemId;
58
60
62
64 {
65 get
66 {
67 return _schemaInfo;
68 }
69 set
70 {
72 }
73 }
74
75 protected internal XmlDocumentType(string name, string? publicId, string? systemId, string? internalSubset, XmlDocument doc)
76 : base(doc)
77 {
78 _name = name;
79 _publicId = publicId;
80 _systemId = systemId;
81 _namespaces = true;
83 if (!doc.IsLoading)
84 {
85 doc.IsLoading = true;
87 xmlLoader.ParseDocumentType(this);
88 doc.IsLoading = false;
89 }
90 }
91
96
97 public override void WriteTo(XmlWriter w)
98 {
99 w.WriteDocType(_name, _publicId, _systemId, _internalSubset);
100 }
101
102 public override void WriteContentTo(XmlWriter w)
103 {
104 }
105}
XmlDocumentType(string name, string? publicId, string? systemId, string? internalSubset, XmlDocument doc)
override XmlNodeType NodeType
readonly string _internalSubset
override XmlNode CloneNode(bool deep)
override void WriteTo(XmlWriter w)
override void WriteContentTo(XmlWriter w)
virtual XmlDocumentType CreateDocumentType(string name, string? publicId, string? systemId, string? internalSubset)
virtual ? XmlDocument OwnerDocument
Definition XmlNode.cs:109