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

◆ GetSchemaElement()

XmlSchemaElement System.Xml.Schema.XmlSchemaValidator.GetSchemaElement ( )
inlineprivate

Definition at line 2000 of file XmlSchemaValidator.cs.

2001 {
2003 SchemaElementDecl elementDecl = _context.ElementDecl;
2004 if (elementDeclBeforeXsi != null && elementDeclBeforeXsi.SchemaElement != null)
2005 {
2006 XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)elementDeclBeforeXsi.SchemaElement.Clone(null);
2007 xmlSchemaElement.SchemaTypeName = XmlQualifiedName.Empty;
2009 xmlSchemaElement.SetElementType(elementDecl.SchemaType);
2011 return xmlSchemaElement;
2012 }
2013 return elementDecl.SchemaElement;
2014 }

References System.Xml.Schema.XmlSchemaValidator._context, System.Xml.Dictionary, System.Xml.Schema.ValidationState.ElementDecl, System.Xml.Schema.ValidationState.ElementDeclBeforeXsi, and System.Xml.XmlQualifiedName.Empty.

Referenced by System.Xml.Schema.XmlSchemaValidator.InternalValidateEndElement(), System.Xml.Schema.XmlSchemaValidator.SkipToEndElement(), and System.Xml.Schema.XmlSchemaValidator.ValidateElement().