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

◆ ProcessSchemaLocations()

void System.Xml.Schema.XmlSchemaValidator.ProcessSchemaLocations ( string xsiSchemaLocation,
string xsiNoNamespaceSchemaLocation )
inlineprivate

Definition at line 1196 of file XmlSchemaValidator.cs.

1197 {
1198 bool flag = false;
1199 if (xsiNoNamespaceSchemaLocation != null)
1200 {
1201 flag = true;
1203 }
1204 if (xsiSchemaLocation != null)
1205 {
1206 object typedValue;
1207 Exception ex = s_dtStringArray.TryParseValue(xsiSchemaLocation, _nameTable, _nsResolver, out typedValue);
1208 if (ex != null)
1209 {
1210 SendValidationEvent(System.SR.Sch_InvalidValueDetailedAttribute, new string[4] { "schemaLocation", xsiSchemaLocation, s_dtStringArray.TypeCodeString, ex.Message }, ex);
1211 return;
1212 }
1213 string[] array = (string[])typedValue;
1214 flag = true;
1215 try
1216 {
1217 for (int i = 0; i < array.Length - 1; i += 2)
1218 {
1219 LoadSchema(array[i], array[i + 1]);
1220 }
1221 }
1222 catch (XmlSchemaException e)
1223 {
1225 }
1226 }
1227 if (flag)
1228 {
1230 }
1231 }
static string Sch_InvalidValueDetailedAttribute
Definition SR.cs:488
Definition SR.cs:7
static readonly XmlSchemaDatatype s_dtStringArray
void LoadSchema(string uri, string url)
readonly IXmlNamespaceResolver _nsResolver

References System.Xml.Schema.XmlSchemaValidator._nameTable, System.Xml.Schema.XmlSchemaValidator._nsResolver, System.array, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaValidator.LoadSchema(), System.Xml.Schema.XmlSchemaValidator.RecompileSchemaSet(), System.Xml.Schema.XmlSchemaValidator.s_dtStringArray, System.SR.Sch_InvalidValueDetailedAttribute, and System.Xml.Schema.XmlSchemaValidator.SendValidationEvent().

Referenced by System.Xml.Schema.XmlSchemaValidator.ValidateElement().