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

◆ LoadSchema()

void System.Xml.Schema.XdrValidator.LoadSchema ( string uri)
inlineprivate

Definition at line 366 of file XdrValidator.cs.

367 {
368 if (base.schemaInfo.TargetNamespaces.ContainsKey(uri) || base.XmlResolver == null)
369 {
370 return;
371 }
372 SchemaInfo schemaInfo = null;
373 if (base.SchemaCollection != null)
374 {
375 schemaInfo = base.SchemaCollection.GetSchemaInfo(uri);
376 }
377 if (schemaInfo != null)
378 {
379 if (schemaInfo.SchemaType != SchemaType.XDR)
380 {
381 throw new XmlException(System.SR.Xml_MultipleValidaitonTypes, string.Empty, base.PositionInfo.LineNumber, base.PositionInfo.LinePosition);
382 }
383 base.schemaInfo.Add(schemaInfo, base.EventHandler);
384 }
385 else
386 {
388 }
389 }
static string Xml_MultipleValidaitonTypes
Definition SR.cs:220
Definition SR.cs:7
void LoadSchemaFromLocation(string uri)

References System.Xml.Dictionary, System.Xml.Schema.XdrValidator.LoadSchemaFromLocation(), System.Xml.Schema.BaseValidator.schemaInfo, System.Xml.Schema.SchemaInfo.SchemaType, System.SR.Xml_MultipleValidaitonTypes, and System.Xml.XmlException.

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