Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlValidatingReader.cs
Go to the documentation of this file.
2using System.IO;
3using System.Text;
5
6namespace System.Xml;
7
8[Obsolete("XmlValidatingReader has been deprecated. Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead.")]
10{
12
13 public override XmlNodeType NodeType => _impl.NodeType;
14
15 public override string Name => _impl.Name;
16
17 public override string LocalName => _impl.LocalName;
18
19 public override string NamespaceURI => _impl.NamespaceURI;
20
21 public override string Prefix => _impl.Prefix;
22
23 public override bool HasValue => _impl.HasValue;
24
25 public override string Value => _impl.Value;
26
27 public override int Depth => _impl.Depth;
28
29 public override string BaseURI => _impl.BaseURI;
30
31 public override bool IsEmptyElement => _impl.IsEmptyElement;
32
33 public override bool IsDefault => _impl.IsDefault;
34
35 public override char QuoteChar => _impl.QuoteChar;
36
37 public override XmlSpace XmlSpace => _impl.XmlSpace;
38
39 public override string XmlLang => _impl.XmlLang;
40
41 public override int AttributeCount => _impl.AttributeCount;
42
43 public override bool EOF => _impl.EOF;
44
45 public override ReadState ReadState => _impl.ReadState;
46
48
49 public override bool CanResolveEntity => true;
50
51 public override bool CanReadBinaryContent => true;
52
54
56
57 public object? SchemaType => _impl.SchemaType;
58
59 public XmlReader Reader => _impl.Reader;
60
62 {
63 get
64 {
65 return _impl.ValidationType;
66 }
67 set
68 {
70 }
71 }
72
74
76 {
77 get
78 {
79 return _impl.EntityHandling;
80 }
81 set
82 {
84 }
85 }
86
88 {
89 set
90 {
92 }
93 }
94
95 public bool Namespaces
96 {
97 get
98 {
99 return _impl.Namespaces;
100 }
101 set
102 {
104 }
105 }
106
108
110
111 internal override IDtdInfo? DtdInfo => _impl.DtdInfo;
112
113 public event ValidationEventHandler ValidationEventHandler
114 {
115 add
116 {
118 }
119 remove
120 {
122 }
123 }
124
126 {
127 _impl = new XmlValidatingReaderImpl(reader);
128 _impl.OuterReader = this;
129 }
130
132 {
133 if (xmlFragment == null)
134 {
135 throw new ArgumentNullException("xmlFragment");
136 }
138 _impl.OuterReader = this;
139 }
140
142 {
143 if (xmlFragment == null)
144 {
145 throw new ArgumentNullException("xmlFragment");
146 }
148 _impl.OuterReader = this;
149 }
150
151 public override string? GetAttribute(string name)
152 {
153 return _impl.GetAttribute(name);
154 }
155
156 public override string? GetAttribute(string localName, string? namespaceURI)
157 {
158 return _impl.GetAttribute(localName, namespaceURI);
159 }
160
161 public override string GetAttribute(int i)
162 {
163 return _impl.GetAttribute(i);
164 }
165
166 public override bool MoveToAttribute(string name)
167 {
168 return _impl.MoveToAttribute(name);
169 }
170
171 public override bool MoveToAttribute(string localName, string? namespaceURI)
172 {
173 return _impl.MoveToAttribute(localName, namespaceURI);
174 }
175
176 public override void MoveToAttribute(int i)
177 {
179 }
180
181 public override bool MoveToFirstAttribute()
182 {
184 }
185
186 public override bool MoveToNextAttribute()
187 {
188 return _impl.MoveToNextAttribute();
189 }
190
191 public override bool MoveToElement()
192 {
193 return _impl.MoveToElement();
194 }
195
196 public override bool ReadAttributeValue()
197 {
198 return _impl.ReadAttributeValue();
199 }
200
201 public override bool Read()
202 {
203 return _impl.Read();
204 }
205
206 public override void Close()
207 {
208 _impl.Close();
209 }
210
211 public override string? LookupNamespace(string prefix)
212 {
214 if (text != null && text.Length == 0)
215 {
216 text = null;
217 }
218 return text;
219 }
220
221 public override void ResolveEntity()
222 {
224 }
225
226 public override int ReadContentAsBase64(byte[] buffer, int index, int count)
227 {
229 }
230
231 public override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
232 {
234 }
235
236 public override int ReadContentAsBinHex(byte[] buffer, int index, int count)
237 {
239 }
240
241 public override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
242 {
244 }
245
246 public override string ReadString()
247 {
249 return base.ReadString();
250 }
251
252 public bool HasLineInfo()
253 {
254 return true;
255 }
256
261
266
271
272 public object? ReadTypedValue()
273 {
274 return _impl.ReadTypedValue();
275 }
276}
override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
override int ReadContentAsBase64(byte[] buffer, int index, int count)
override int ReadContentAsBinHex(byte[] buffer, int index, int count)
override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
IDictionary< string, string > IXmlNamespaceResolver. GetNamespacesInScope(XmlNamespaceScope scope)
string IXmlNamespaceResolver. LookupPrefix(string namespaceName)
override string LookupNamespace(string prefix)
override string GetAttribute(string name)
override? string GetAttribute(string localName, string? namespaceURI)
override bool MoveToAttribute(string localName, string? namespaceURI)
readonly XmlValidatingReaderImpl _impl
XmlValidatingReader(Stream xmlFragment, XmlNodeType fragType, XmlParserContext context)
XmlValidatingReader(string xmlFragment, XmlNodeType fragType, XmlParserContext context)
override int ReadElementContentAsBinHex(byte[] buffer, int index, int count)
override string GetAttribute(int i)
override int ReadContentAsBase64(byte[] buffer, int index, int count)
override int ReadContentAsBinHex(byte[] buffer, int index, int count)
override int ReadElementContentAsBase64(byte[] buffer, int index, int count)
override? string LookupNamespace(string prefix)
override? string GetAttribute(string name)
override bool MoveToAttribute(string name)
IDictionary< string, string > GetNamespacesInScope(XmlNamespaceScope scope)
string? LookupPrefix(string namespaceName)
string? LookupNamespace(string prefix)