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

◆ ValidateQNameAttribute()

void System.Xml.Schema.Preprocessor.ValidateQNameAttribute ( XmlSchemaObject xso,
string attributeName,
XmlQualifiedName value )
inlineprivate

Definition at line 1915 of file Preprocessor.cs.

1916 {
1917 try
1918 {
1919 value.Verify();
1920 value.Atomize(base.NameTable);
1921 if (_currentSchema.IsChameleon && value.Namespace.Length == 0)
1922 {
1923 value.SetNamespace(_currentSchema.TargetNamespace);
1924 }
1925 if (_referenceNamespaces[value.Namespace] == null)
1926 {
1928 }
1929 }
1930 catch (FormatException ex)
1931 {
1932 SendValidationEvent(System.SR.Sch_InvalidAttribute, new string[2] { attributeName, ex.Message }, ex, xso);
1933 }
1934 catch (XmlException ex2)
1935 {
1936 SendValidationEvent(System.SR.Sch_InvalidAttribute, new string[2] { attributeName, ex2.Message }, ex2, xso);
1937 }
1938 }
static string Sch_InvalidAttribute
Definition SR.cs:1140
static string Sch_UnrefNS
Definition SR.cs:1150
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
readonly Hashtable _referenceNamespaces

References System.Xml.Schema.Preprocessor._currentSchema, System.Xml.Schema.Preprocessor._referenceNamespaces, System.Xml.Schema.XmlSchema.IsChameleon, System.SR.Sch_InvalidAttribute, System.SR.Sch_UnrefNS, System.Xml.Schema.BaseProcessor.SendValidationEvent(), System.Xml.Schema.XmlSchema.TargetNamespace, and System.value.

Referenced by System.Xml.Schema.Preprocessor.PreprocessAttributeContent(), System.Xml.Schema.Preprocessor.PreprocessAttributes(), System.Xml.Schema.Preprocessor.PreprocessComplexType(), System.Xml.Schema.Preprocessor.PreprocessElement(), System.Xml.Schema.Preprocessor.PreprocessElementContent(), System.Xml.Schema.Preprocessor.PreprocessIdentityConstraint(), System.Xml.Schema.Preprocessor.PreprocessLocalAttribute(), System.Xml.Schema.Preprocessor.PreprocessLocalElement(), System.Xml.Schema.Preprocessor.PreprocessParticle(), and System.Xml.Schema.Preprocessor.PreprocessSimpleType().