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

◆ PreprocessAttributes()

void System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAttributes ( XmlSchemaObjectCollection attributes,
XmlSchemaAnyAttribute anyAttribute,
XmlSchemaObject parent )
inlineprivate

Definition at line 1576 of file SchemaCollectionPreprocessor.cs.

1577 {
1578 for (int i = 0; i < attributes.Count; i++)
1579 {
1580 SetParent(attributes[i], parent);
1581 if (attributes[i] is XmlSchemaAttribute attribute)
1582 {
1584 continue;
1585 }
1586 XmlSchemaAttributeGroupRef xmlSchemaAttributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i];
1587 if (xmlSchemaAttributeGroupRef.RefName.IsEmpty)
1588 {
1590 }
1591 else
1592 {
1594 }
1595 PreprocessAnnotation(attributes[i]);
1596 ValidateIdAttribute(attributes[i]);
1597 }
1598 if (anyAttribute != null)
1599 {
1600 try
1601 {
1602 SetParent(anyAttribute, parent);
1604 anyAttribute.BuildNamespaceListV1Compat(_targetNamespace);
1605 }
1606 catch
1607 {
1609 }
1611 }
1612 }
static string Sch_InvalidAnyAttribute
Definition SR.cs:932
static string Sch_MissAttribute
Definition SR.cs:428
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void SetParent(XmlSchemaObject child, XmlSchemaObject parent)
void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)

References System.Xml.Schema.SchemaCollectionPreprocessor._targetNamespace, System.Collections.CollectionBase.Count, System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAnnotation(), System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessLocalAttribute(), System.SR.Sch_InvalidAnyAttribute, System.SR.Sch_MissAttribute, System.Xml.Schema.BaseProcessor.SendValidationEvent(), System.Xml.Schema.SchemaCollectionPreprocessor.SetParent(), System.Xml.Schema.SchemaCollectionPreprocessor.ValidateIdAttribute(), and System.Xml.Schema.SchemaCollectionPreprocessor.ValidateQNameAttribute().

Referenced by System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessAttributeGroup(), and System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessComplexType().