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

◆ BuildXsiAttributes()

static void System.Xml.Schema.XmlSchemaValidator.BuildXsiAttributes ( )
inlinestaticprivate

Definition at line 2265 of file XmlSchemaValidator.cs.

2266 {
2267 if (s_xsiTypeSO == null)
2268 {
2269 XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
2270 xmlSchemaAttribute.Name = "type";
2271 xmlSchemaAttribute.SetQualifiedName(new XmlQualifiedName("type", "http://www.w3.org/2001/XMLSchema-instance"));
2272 xmlSchemaAttribute.SetAttributeType(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.QName));
2274 }
2275 if (s_xsiNilSO == null)
2276 {
2277 XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
2279 xmlSchemaAttribute2.SetQualifiedName(new XmlQualifiedName("nil", "http://www.w3.org/2001/XMLSchema-instance"));
2280 xmlSchemaAttribute2.SetAttributeType(XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.Boolean));
2282 }
2283 if (s_xsiSLSO == null)
2284 {
2285 XmlSchemaSimpleType builtInSimpleType = XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String);
2286 XmlSchemaAttribute xmlSchemaAttribute3 = new XmlSchemaAttribute();
2287 xmlSchemaAttribute3.Name = "schemaLocation";
2288 xmlSchemaAttribute3.SetQualifiedName(new XmlQualifiedName("schemaLocation", "http://www.w3.org/2001/XMLSchema-instance"));
2289 xmlSchemaAttribute3.SetAttributeType(builtInSimpleType);
2291 }
2292 if (s_xsiNoNsSLSO == null)
2293 {
2294 XmlSchemaSimpleType builtInSimpleType2 = XmlSchemaType.GetBuiltInSimpleType(XmlTypeCode.String);
2295 XmlSchemaAttribute xmlSchemaAttribute4 = new XmlSchemaAttribute();
2296 xmlSchemaAttribute4.Name = "noNamespaceSchemaLocation";
2297 xmlSchemaAttribute4.SetQualifiedName(new XmlQualifiedName("noNamespaceSchemaLocation", "http://www.w3.org/2001/XMLSchema-instance"));
2298 xmlSchemaAttribute4.SetAttributeType(builtInSimpleType2);
2300 }
2301 }
static int CompareExchange(ref int location1, int value, int comparand)
static XmlSchemaAttribute s_xsiNoNsSLSO
static XmlSchemaAttribute s_xsiTypeSO

References System.Threading.Interlocked.CompareExchange(), System.Xml.Dictionary, System.Xml.Schema.XmlSchemaType.GetBuiltInSimpleType(), System.Xml.Schema.XmlSchemaValidator.s_xsiNilSO, System.Xml.Schema.XmlSchemaValidator.s_xsiNoNsSLSO, System.Xml.Schema.XmlSchemaValidator.s_xsiSLSO, and System.Xml.Schema.XmlSchemaValidator.s_xsiTypeSO.

Referenced by System.Xml.Schema.XmlSchemaValidator.AddXsiAttributes().