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

◆ Execute()

bool System.Xml.Schema.SchemaCollectionPreprocessor.Execute ( XmlSchema schema,
string targetNamespace,
bool loadExternals,
XmlSchemaCollection xsc )
inline

Definition at line 51 of file SchemaCollectionPreprocessor.cs.

52 {
54 _xmlns = base.NameTable.Add("xmlns");
56 if (loadExternals && _xmlResolver != null)
57 {
59 if (schema.BaseUri != null)
60 {
61 _schemaLocations.Add(schema.BaseUri, schema.BaseUri);
62 }
64 }
66 Preprocess(schema, targetNamespace, Compositor.Root);
67 if (!base.HasErrors)
68 {
70 for (int i = 0; i < schema.Includes.Count; i++)
71 {
72 XmlSchemaExternal xmlSchemaExternal = (XmlSchemaExternal)schema.Includes[i];
73 if (xmlSchemaExternal.Schema != null)
74 {
76 }
77 }
78 }
79 return !base.HasErrors;
80 }
void Add(TKey key, TValue value)
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
void LoadExternals(XmlSchema schema, XmlSchemaCollection xsc)
void Preprocess(XmlSchema schema, string targetNamespace, Compositor compositor)

References System.Xml.Schema.SchemaCollectionPreprocessor._schema, System.Xml.Schema.SchemaCollectionPreprocessor._schemaLocations, System.Xml.Schema.SchemaCollectionPreprocessor._xmlns, System.Xml.Schema.SchemaCollectionPreprocessor._xmlResolver, System.Collections.Hashtable.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.SchemaCollectionPreprocessor.Cleanup(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.SchemaCollectionPreprocessor.LoadExternals(), System.Xml.Schema.SchemaCollectionPreprocessor.Preprocess(), and System.Xml.Schema.SchemaCollectionPreprocessor.ValidateIdAttribute().