Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ValidateStartElement()

void System.Xml.Schema.XdrValidator.ValidateStartElement ( )
inlineprivate

Definition at line 234 of file XdrValidator.cs.

235 {
236 if (context.ElementDecl != null)
237 {
238 if (context.ElementDecl.SchemaType != null)
239 {
241 }
242 else
243 {
245 }
247 {
249 context.IsNill = true;
250 }
252 {
254 }
255 }
257 {
258 return;
259 }
260 do
261 {
262 if ((object)reader.NamespaceURI == base.SchemaNames.NsXmlNs)
263 {
264 continue;
265 }
266 try
267 {
270 if (attributeXdr != null)
271 {
273 {
275 }
276 reader.SchemaTypeObject = ((attributeXdr.SchemaType != null) ? ((object)attributeXdr.SchemaType) : ((object)attributeXdr.Datatype));
277 if (attributeXdr.Datatype != null)
278 {
279 string value = reader.Value;
281 }
282 }
283 }
284 catch (XmlSchemaException ex)
285 {
286 ex.SetSource(reader.BaseURI, base.PositionInfo.LineNumber, base.PositionInfo.LinePosition);
288 }
289 }
290 while (reader.MoveToNextAttribute());
292 }
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
void SendValidationEvent(string code)
XmlValidatingReaderImpl reader
SchemaAttDef GetAttributeXdr(SchemaElementDecl ed, XmlQualifiedName qname)
void CheckValue(string value, SchemaAttDef attdef)
XmlQualifiedName QualifiedName(string name, string ns)

References System.Xml.Schema.XdrValidator._attPresence, System.Collections.Hashtable.Add(), System.Xml.XmlValidatingReaderImpl.BaseURI, System.Xml.Schema.XdrValidator.CheckValue(), System.Collections.Hashtable.Clear(), System.Xml.Schema.BaseValidator.context, System.Xml.Schema.SchemaDeclBase.Datatype, System.Xml.Schema.SchemaDeclBase.DefaultValueTyped, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.SchemaInfo.GetAttributeXdr(), System.Xml.Schema.SchemaElementDecl.HasRequiredAttribute, System.Xml.XmlValidatingReaderImpl.IsEmptyElement, System.Xml.Schema.ValidationState.IsNill, System.Xml.XmlValidatingReaderImpl.LocalName, System.Xml.XmlValidatingReaderImpl.MoveToElement(), System.Xml.XmlValidatingReaderImpl.MoveToFirstAttribute(), System.Xml.XmlValidatingReaderImpl.MoveToNextAttribute(), System.Xml.XmlValidatingReaderImpl.NamespaceURI, System.Xml.Schema.XdrValidator.QualifiedName(), System.Xml.Schema.BaseValidator.reader, System.Xml.Schema.BaseValidator.schemaInfo, System.Xml.Schema.SchemaDeclBase.SchemaType, System.Xml.Schema.BaseValidator.SendValidationEvent(), System.value, and System.Xml.XmlValidatingReaderImpl.Value.

Referenced by System.Xml.Schema.XdrValidator.ProcessElement().