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

◆ GetTypeFromAncestors()

XmlSchemaObject System.Xml.DocumentSchemaValidator.GetTypeFromAncestors ( XmlElement elementToValidate,
XmlSchemaObject ancestorType,
int ancestorsCount )
inlineprivate

Definition at line 519 of file DocumentSchemaValidator.cs.

520 {
523 int num = ancestorsCount - 1;
525 for (int num2 = num; num2 >= 0; num2--)
526 {
528 XmlElement xmlElement = xmlNode as XmlElement;
530 if (!flag)
531 {
534 }
536 if (num2 > 0)
537 {
539 }
540 else
541 {
543 }
544 }
548 if (xmlSchemaObject == null)
549 {
551 {
553 {
555 }
556 }
558 {
560 }
561 }
562 return xmlSchemaObject;
563 }
void ValidateSingleElement(XmlElement elementNode, bool skipToEnd, XmlSchemaInfo newSchemaInfo)
void ValidateChildrenTillNextAncestor(XmlNode parentNode, XmlNode childToStopAt)
bool AncestorTypeHasWildcard(XmlSchemaObject ancestorType)
XmlSchemaValidator CreateTypeFinderValidator(XmlSchemaObject partialValidationType)
XmlSchemaContentProcessing CurrentProcessContents
void ValidateEndOfAttributes(XmlSchemaInfo? schemaInfo)
XmlName AddXmlName(string prefix, string localName, string namespaceURI, IXmlSchemaInfo schemaInfo)

References System.Xml.DocumentSchemaValidator._document, System.Xml.DocumentSchemaValidator._isPartialTreeValid, System.Xml.DocumentSchemaValidator._nodeSequenceToValidate, System.Xml.DocumentSchemaValidator._schemaInfo, System.Xml.DocumentSchemaValidator._validator, System.Xml.XmlDocument.AddXmlName(), System.Xml.DocumentSchemaValidator.AncestorTypeHasWildcard(), System.Xml.Schema.XmlSchemaComplexType.AnyType, System.Xml.Schema.XmlSchemaComplexType.AnyTypeSkip, System.Xml.DocumentSchemaValidator.CreateTypeFinderValidator(), System.Xml.Schema.XmlSchemaValidator.CurrentProcessContents, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaInfo.SchemaElement, System.Xml.Schema.XmlSchemaInfo.SchemaType, System.Xml.DocumentSchemaValidator.ValidateChildrenTillNextAncestor(), System.Xml.Schema.XmlSchemaValidator.ValidateEndOfAttributes(), and System.Xml.DocumentSchemaValidator.ValidateSingleElement().

Referenced by System.Xml.DocumentSchemaValidator.FindSchemaInfo().