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

◆ XmlSchemaValidator()

System.Xml.Schema.XmlSchemaValidator.XmlSchemaValidator ( XmlNameTable nameTable,
XmlSchemaSet schemas,
IXmlNamespaceResolver namespaceResolver,
XmlSchemaValidationFlags validationFlags )
inline

Definition at line 300 of file XmlSchemaValidator.cs.

301 {
302 if (nameTable == null)
303 {
304 throw new ArgumentNullException("nameTable");
305 }
306 if (schemas == null)
307 {
308 throw new ArgumentNullException("schemas");
309 }
310 if (namespaceResolver == null)
311 {
312 throw new ArgumentNullException("namespaceResolver");
313 }
317 if ((validationFlags & XmlSchemaValidationFlags.ProcessInlineSchema) != 0 || (validationFlags & XmlSchemaValidationFlags.ProcessSchemaLocation) != 0)
318 {
319 _schemaSet = new XmlSchemaSet(nameTable);
320 _schemaSet.ValidationEventHandler += schemas.GetEventHandler();
321 _schemaSet.CompilationSettings = schemas.CompilationSettings;
322 _schemaSet.XmlResolver = schemas.GetResolver();
323 _schemaSet.Add(schemas);
325 }
326 else
327 {
328 _schemaSet = schemas;
329 }
330 Init();
331 }
XmlSchema? Add(string? targetNamespace, string schemaUri)
readonly XmlSchemaValidationFlags _validationFlags
readonly IXmlNamespaceResolver _nsResolver

References System.Xml.Schema.XmlSchemaValidator._nameTable, System.Xml.Schema.XmlSchemaValidator._nsResolver, System.Xml.Schema.XmlSchemaValidator._schemaSet, System.Xml.Schema.XmlSchemaValidator._validatedNamespaces, System.Xml.Schema.XmlSchemaValidator._validationFlags, System.Xml.Schema.XmlSchemaSet.Add(), System.Xml.Schema.XmlSchemaSet.CompilationSettings, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaSet.GetEventHandler(), System.Xml.Schema.XmlSchemaSet.GetResolver(), and System.Xml.Schema.XmlSchemaValidator.Init().