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

◆ Execute()

bool System.Xml.Schema.Preprocessor.Execute ( XmlSchema schema,
string targetNamespace,
bool loadExternals )
inline

Definition at line 95 of file Preprocessor.cs.

96 {
98 _xmlns = base.NameTable.Add("xmlns");
99 _nsXsi = base.NameTable.Add("http://www.w3.org/2001/XMLSchema-instance");
103 {
105 }
106 if (_rootSchema.TargetNamespace != null)
107 {
108 if (targetNamespace == null)
109 {
111 }
113 {
115 }
116 }
117 else if (targetNamespace != null && targetNamespace.Length != 0)
118 {
120 }
121 if (loadExternals && _xmlResolver != null)
122 {
124 }
126 int i = 0;
127 try
128 {
129 for (i = 0; i < _lockList.Count; i++)
130 {
131 XmlSchema xmlSchema = (XmlSchema)_lockList.GetByIndex(i);
134 }
137 if (_redefinedList != null)
138 {
139 for (int j = 0; j < _redefinedList.Count; j++)
140 {
141 PreprocessRedefine((RedefineEntry)_redefinedList[j]);
142 }
143 }
144 }
145 finally
146 {
147 if (i == _lockList.Count)
148 {
149 i--;
150 }
151 int num = i;
152 while (i >= 0)
153 {
154 XmlSchema xmlSchema = (XmlSchema)_lockList.GetByIndex(i);
157 {
159 }
160 else
161 {
163 xmlSchema.IsPreprocessed = !base.HasErrors;
165 }
166 i--;
167 }
168 }
169 _rootSchema.IsPreprocessed = !base.HasErrors;
170 return !base.HasErrors;
171 }
void Add(TKey key, TValue value)
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
virtual ? object GetByIndex(int index)
static string Sch_MismatchTargetNamespaceEx
Definition SR.cs:600
Definition SR.cs:7
static void Exit(object obj)
static void Enter(object obj)
void SendValidationEvent(string code, XmlSchemaObject source)
void LoadExternals(XmlSchema schema)
void Preprocess(XmlSchema schema, string targetNamespace, ArrayList imports)
XmlSchema GetChameleonSchema(string targetNamespace, XmlSchema schema)
static XmlSchema GetBuildInSchema()
void PreprocessRedefine(RedefineEntry redefineEntry)
void BuildSchemaList(XmlSchema schema)
readonly SortedList _lockList

References System.Xml.Schema.Preprocessor._lockList, System.Xml.Schema.Preprocessor._nsXsi, System.Xml.Schema.Preprocessor._redefinedList, System.Xml.Schema.Preprocessor._rootSchema, System.Xml.Schema.Preprocessor._rootSchemaForRedefine, System.Xml.Schema.Preprocessor._schemaLocations, System.Xml.Schema.Preprocessor._xmlns, System.Xml.Schema.Preprocessor._xmlResolver, System.Collections.Hashtable.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.Schema.XmlSchema.BaseUri, System.Xml.Schema.Preprocessor.BuildSchemaList(), System.Collections.ArrayList.Clear(), System.Collections.SortedList.Count, System.Collections.ArrayList.Count, System.Xml.Dictionary, System.Threading.Monitor.Enter(), System.Threading.Monitor.Exit(), System.Xml.Schema.Preprocessor.GetBuildInSchema(), System.Collections.SortedList.GetByIndex(), System.Xml.Schema.Preprocessor.GetChameleonSchema(), System.Xml.Schema.XmlSchema.ImportedNamespaces, System.Xml.Schema.XmlSchema.ImportedSchemas, System.Xml.Schema.Preprocessor.LoadExternals(), System.Xml.Schema.Preprocessor.Preprocess(), System.Xml.Schema.Preprocessor.PreprocessRedefine(), System.SR.Sch_MismatchTargetNamespaceEx, System.Xml.Schema.BaseProcessor.SendValidationEvent(), and System.Xml.Schema.XmlSchema.TargetNamespace.