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

◆ PreprocessAttributes()

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

Definition at line 1827 of file Preprocessor.cs.

1828 {
1829 for (int i = 0; i < attributes.Count; i++)
1830 {
1831 SetParent(attributes[i], parent);
1832 if (attributes[i] is XmlSchemaAttribute attribute)
1833 {
1835 continue;
1836 }
1837 XmlSchemaAttributeGroupRef xmlSchemaAttributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i];
1838 if (xmlSchemaAttributeGroupRef.RefName.IsEmpty)
1839 {
1841 }
1842 else
1843 {
1845 }
1846 PreprocessAnnotation(attributes[i]);
1847 ValidateIdAttribute(attributes[i]);
1848 }
1849 if (anyAttribute != null)
1850 {
1851 try
1852 {
1853 SetParent(anyAttribute, parent);
1855 anyAttribute.BuildNamespaceList(_targetNamespace);
1856 }
1857 catch (FormatException ex)
1858 {
1859 SendValidationEvent(System.SR.Sch_InvalidAnyDetailed, new string[1] { ex.Message }, ex, anyAttribute);
1860 }
1862 }
1863 }
static string Sch_MissAttribute
Definition SR.cs:428
static string Sch_InvalidAnyDetailed
Definition SR.cs:940
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
void PreprocessAnnotation(XmlSchemaObject schemaObject)
void PreprocessLocalAttribute(XmlSchemaAttribute attribute)
void SetParent(XmlSchemaObject child, XmlSchemaObject parent)
void ValidateIdAttribute(XmlSchemaObject xso)
void ValidateQNameAttribute(XmlSchemaObject xso, string attributeName, XmlQualifiedName value)

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

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