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

◆ XDR_EndRoot()

static void System.Xml.Schema.XdrBuilder.XDR_EndRoot ( XdrBuilder builder)
inlinestaticprivate

Definition at line 579 of file XdrBuilder.cs.

580 {
581 while (builder._UndefinedAttributeTypes != null)
582 {
583 XmlQualifiedName xmlQualifiedName = builder._UndefinedAttributeTypes._TypeName;
584 if (xmlQualifiedName.Namespace.Length == 0)
585 {
586 xmlQualifiedName = new XmlQualifiedName(xmlQualifiedName.Name, builder._TargetNamespace);
587 }
588 if (builder._SchemaInfo.AttributeDecls.TryGetValue(xmlQualifiedName, out var value))
589 {
592 builder.XDR_CheckAttributeDefault(builder._UndefinedAttributeTypes, builder._UndefinedAttributeTypes._Attdef);
593 }
594 else
595 {
596 builder.SendValidationEvent(System.SR.Sch_UndeclaredAttribute, xmlQualifiedName.Name);
597 }
598 builder._UndefinedAttributeTypes = builder._UndefinedAttributeTypes._Next;
599 }
600 foreach (SchemaElementDecl value2 in builder._UndeclaredElements.Values)
601 {
602 builder.SendValidationEvent(System.SR.Sch_UndeclaredElement, XmlQualifiedName.ToString(value2.Name.Name, value2.Prefix));
603 }
604 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
static string Sch_UndeclaredElement
Definition SR.cs:412
static string Sch_UndeclaredAttribute
Definition SR.cs:414
Definition SR.cs:7

References System.Xml.Dictionary, System.SR.Sch_UndeclaredAttribute, System.SR.Sch_UndeclaredElement, System.Xml.XmlQualifiedName.ToString(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.value, and System.Collections.Generic.Dictionary< TKey, TValue >.Values.