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

◆ ProcessInlineSchema()

void System.Xml.Schema.XsdValidator.ProcessInlineSchema ( )
inlineprivate

Definition at line 152 of file XsdValidator.cs.

153 {
155 {
156 return;
157 }
160 string text = null;
161 if (xmlSchema != null && xmlSchema.ErrorCount == 0)
162 {
163 try
164 {
166 schemaInfo.SchemaType = SchemaType.XSD;
167 text = ((xmlSchema.TargetNamespace == null) ? string.Empty : xmlSchema.TargetNamespace);
168 if (!base.SchemaInfo.TargetNamespaces.ContainsKey(text) && base.SchemaCollection.Add(text, schemaInfo, xmlSchema, compile: true) != null)
169 {
170 base.SchemaInfo.Add(schemaInfo, base.EventHandler);
171 }
172 }
173 catch (XmlSchemaException ex)
174 {
176 {
177 base.BaseUri.AbsoluteUri,
178 ex.Message
179 }, XmlSeverityType.Error);
180 }
181 }
182 _inlineSchemaParser = null;
183 }
static string Sch_CannotLoadSchema
Definition SR.cs:1078
Definition SR.cs:7
void SendValidationEvent(string code)
SchemaType FinishParsing()
Definition Parser.cs:157

References System.Xml.Schema.XsdValidator._inlineSchemaParser, System.Xml.Dictionary, System.Xml.Schema.Parser.FinishParsing(), System.Xml.Schema.Parser.ParseReaderNode(), System.SR.Sch_CannotLoadSchema, System.Xml.Schema.BaseValidator.schemaInfo, System.Xml.Schema.BaseValidator.SchemaInfo, System.Xml.Schema.BaseValidator.SendValidationEvent(), System.text, and System.Xml.Schema.Parser.XmlSchema.

Referenced by System.Xml.Schema.XsdValidator.Validate(), and System.Xml.Schema.XsdValidator.ValidateElement().