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

◆ ElementForm()

XmlSchemaForm System.Xml.Serialization.XmlSchemaImporter.ElementForm ( string ns,
XmlSchemaElement element )
inlineprivate

Definition at line 2011 of file XmlSchemaImporter.cs.

2012 {
2013 if (element.Form == XmlSchemaForm.None)
2014 {
2016 while (xmlSchemaObject.Parent != null)
2017 {
2019 }
2021 {
2022 if (ns == null || ns.Length == 0)
2023 {
2024 if (xmlSchema.ElementFormDefault != 0)
2025 {
2026 return xmlSchema.ElementFormDefault;
2027 }
2028 return XmlSchemaForm.Unqualified;
2029 }
2030 XmlSchemas.Preprocess(xmlSchema);
2031 if (element.QualifiedName.Namespace != null && element.QualifiedName.Namespace.Length != 0)
2032 {
2033 return XmlSchemaForm.Qualified;
2034 }
2035 return XmlSchemaForm.Unqualified;
2036 }
2037 return XmlSchemaForm.Qualified;
2038 }
2039 return element.Form;
2040 }

References System.Xml.Schema.XmlSchemaElement.Form, System.Xml.XmlQualifiedName.Namespace, System.Xml.Serialization.XmlSchemas.Preprocess(), and System.Xml.Schema.XmlSchemaElement.QualifiedName.

Referenced by System.Xml.Serialization.XmlSchemaImporter.ImportArray(), and System.Xml.Serialization.XmlSchemaImporter.ImportElement().