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

◆ ProcessElement()

void System.Xml.Schema.XsdValidator.ProcessElement ( object particle)
inlineprivate

Definition at line 226 of file XsdValidator.cs.

227 {
228 SchemaElementDecl schemaElementDecl = FastGetElementDecl(particle);
231 {
233 }
235 if (_processContents != XmlSchemaContentProcessing.Skip)
236 {
237 if (schemaElementDecl == null || !xsiType.IsEmpty || xsiNil != null)
238 {
240 }
241 if (schemaElementDecl == null)
242 {
243 if (HasSchema && _processContents == XmlSchemaContentProcessing.Strict)
244 {
246 }
247 else
248 {
250 }
251 }
252 }
256 if (context.ElementDecl != null)
257 {
259 context.NeedValidateChildren = _processContents != XmlSchemaContentProcessing.Skip;
261 }
262 }
static string Sch_NoElementSchemaFound
Definition SR.cs:786
static string Sch_UndeclaredElement
Definition SR.cs:412
Definition SR.cs:7
void SendValidationEvent(string code)
virtual void InitValidation(ValidationState context)
void ProcessXsiAttributes(out XmlQualifiedName xsiType, out string xsiNil)
SchemaElementDecl ThoroughGetElementDecl(SchemaElementDecl elementDecl, XmlQualifiedName xsiType, string xsiNil)
void Push(XmlQualifiedName elementName)
XmlSchemaContentProcessing _processContents
XmlNamespaceManager _nsManager
SchemaElementDecl FastGetElementDecl(object particle)

References System.Xml.Schema.XsdValidator._bManageNamespaces, System.Xml.Schema.XsdValidator._nsManager, System.Xml.Schema.XsdValidator._processContents, System.Xml.Schema.SchemaElementDecl.ContentValidator, System.Xml.Schema.BaseValidator.context, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.BaseValidator.elementName, System.Xml.Schema.XsdValidator.FastGetElementDecl(), System.Xml.Schema.XsdValidator.HasSchema, System.Xml.Schema.ContentValidator.InitValidation(), System.Xml.Schema.ValidationState.LocalName, System.Xml.Schema.ValidationState.Namespace, System.Xml.Schema.XsdValidator.ProcessXsiAttributes(), System.Xml.Schema.XsdValidator.Push(), System.Xml.XmlNamespaceManager.PushScope(), System.Xml.Schema.XmlSchemaValidator.QNameString(), System.SR.Sch_NoElementSchemaFound, System.SR.Sch_UndeclaredElement, System.Xml.Schema.BaseValidator.SendValidationEvent(), System.Xml.Schema.XsdValidator.ThoroughGetElementDecl(), System.Xml.Schema.XsdValidator.ValidateEndStartElement(), System.Xml.Schema.XsdValidator.ValidateStartElement(), and System.Xml.Schema.XsdValidator.ValidateStartElementIdentityConstraints().

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