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

◆ GetBuildInSchema()

static XmlSchema System.Xml.Schema.Preprocessor.GetBuildInSchema ( )
inlinestaticpackage

Definition at line 354 of file Preprocessor.cs.

355 {
356 if (s_builtInSchemaForXmlNS == null)
357 {
358 XmlSchema xmlSchema = new XmlSchema();
359 xmlSchema.TargetNamespace = "http://www.w3.org/XML/1998/namespace";
360 xmlSchema.Namespaces.Add("xml", "http://www.w3.org/XML/1998/namespace");
361 XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
363 xmlSchemaAttribute.SchemaTypeName = new XmlQualifiedName("language", "http://www.w3.org/2001/XMLSchema");
365 XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
367 xmlSchemaAttribute2.SchemaTypeName = new XmlQualifiedName("anyURI", "http://www.w3.org/2001/XMLSchema");
369 XmlSchemaAttribute xmlSchemaAttribute3 = new XmlSchemaAttribute();
370 xmlSchemaAttribute3.Name = "space";
371 XmlSchemaSimpleType xmlSchemaSimpleType = new XmlSchemaSimpleType();
372 XmlSchemaSimpleTypeRestriction xmlSchemaSimpleTypeRestriction = new XmlSchemaSimpleTypeRestriction();
373 xmlSchemaSimpleTypeRestriction.BaseTypeName = new XmlQualifiedName("NCName", "http://www.w3.org/2001/XMLSchema");
374 XmlSchemaEnumerationFacet xmlSchemaEnumerationFacet = new XmlSchemaEnumerationFacet();
377 XmlSchemaEnumerationFacet xmlSchemaEnumerationFacet2 = new XmlSchemaEnumerationFacet();
384 XmlSchemaAttributeGroup xmlSchemaAttributeGroup = new XmlSchemaAttributeGroup();
385 xmlSchemaAttributeGroup.Name = "specialAttrs";
386 XmlSchemaAttribute xmlSchemaAttribute4 = new XmlSchemaAttribute();
387 xmlSchemaAttribute4.RefName = new XmlQualifiedName("lang", "http://www.w3.org/XML/1998/namespace");
389 XmlSchemaAttribute xmlSchemaAttribute5 = new XmlSchemaAttribute();
390 xmlSchemaAttribute5.RefName = new XmlQualifiedName("space", "http://www.w3.org/XML/1998/namespace");
392 XmlSchemaAttribute xmlSchemaAttribute6 = new XmlSchemaAttribute();
393 xmlSchemaAttribute6.RefName = new XmlQualifiedName("base", "http://www.w3.org/XML/1998/namespace");
397 xmlSchema.CompileSchemaInSet(new NameTable(), null, null);
399 }
401 }
void Add(TKey key, TValue value)
static int CompareExchange(ref int location1, int value, int comparand)
static XmlSchema s_builtInSchemaForXmlNS

References System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Threading.Interlocked.CompareExchange(), System.Xml.Dictionary, System.Xml.Schema.BaseProcessor.NameTable, and System.Xml.Schema.Preprocessor.s_builtInSchemaForXmlNS.

Referenced by System.Xml.Schema.BaseProcessor.AddToTable(), System.Xml.Schema.XmlSchemaSet.AddToTable(), System.Xml.Schema.XmlSchemaValidator.AddXmlNamespaceSchema(), System.Xml.Schema.Preprocessor.Cleanup(), System.Xml.Schema.XmlSchemaSet.Compile(), System.Xml.Schema.Preprocessor.Execute(), System.Xml.Schema.Preprocessor.LoadExternals(), and System.Xml.Schema.SchemaCollectionPreprocessor.LoadExternals().