184 string text = (flag2 ?
"any" : (flag ?
"anyElements" :
"anyElement"));
187 XmlSchema xmlSchema = _schemas[@
namespace];
188 if (xmlSchema !=
null)
193 if (xmlSchemaType ==
null)
197 if (IsAnyType(xmlSchemaType, flag2, flag))
206 xmlSchemaComplexType.Name = text2;
207 xmlSchemaComplexType.IsMixed = flag2;
210 xmlSchemaAny.MinOccurs = 0m;
213 xmlSchemaAny.MaxOccurs = decimal.MaxValue;
215 xmlSchemaSequence.
Items.
Add(xmlSchemaAny);
216 xmlSchemaComplexType.Particle = xmlSchemaSequence;
217 AddSchemaItem(xmlSchemaComplexType, @
namespace,
null);
266 string typeName =
mapping.TypeName;
334 if (ns !=
null && ns.Length > 0)
344 if (
ns1 ==
null ||
ns1.Length == 0)
513 if (
item.TargetNamespace !=
"http://www.w3.org/2001/XMLSchema")
533 if (
item2.TargetNamespace !=
"http://www.w3.org/2001/XMLSchema")
602 if (
mapping.XmlnsMember !=
null)
625 if (
mapping.TypeDesc.IsXsdType)
698 for (
int i = 0; i <
accessors.Length; i++)
715 if (
type.ContentModel !=
null)
736 attributes =
type.Attributes;
749 if (
type.ContentModel ==
null)
926 for (
int i = 0; i <
constants.Length; i++)
953 return (
string)
value;
1026 if (
mapping.BaseMapping !=
null &&
mapping.BaseMapping.IncludeInSchema)
1028 if (
mapping.BaseMapping.IsAnonymousType)
1053 if (
mapping.XmlnsMember !=
null)
1065 if (element !=
null)
1072 if (element !=
null)
1106 if (
type.ContentModel !=
null)
1210 for (
int i = 0; i <
mapping.Constants.Length; i++)
virtual void Add(object key, object? value)
static readonly DBNull Value
static CultureInfo InvariantCulture
object? Invoke(object? obj, object?[]? parameters)
static string XmlIllegalForm
static string XmlDuplicateTypeName
static string XmlInvalidContent
static string XmlAnonymousBaseType
static string XmlIllegalArrayElement
static string XmlIllegalWildcard
static string XmlInternalError
static string XmlCircularReference2
static string Format(string resourceFormat, object p1)
static string XmlMappingsScopeMismatch
static string XmlDuplicateNamespace
static string XmlInvalidDefaultValue
static string XmlInternalErrorDetails
static string XmlIllegalMultipleText
static string XmlCannotIncludeInSchema
static string XmlBareTextMember
static string XmlBareAttributeMember
XmlQualifiedName SchemaTypeName
int Add(XmlSchemaObject item)
override XmlSchemaObjectCollection Items
XmlSchemaObjectCollection Items
StructMapping DerivedMappings
TypeDesc ArrayElementTypeDesc
XmlSchemaElement ExportElement(ElementAccessor accessor)
void ExportElementAccessor(XmlSchemaGroupBase group, ElementAccessor accessor, bool repeats, bool valueTypeOptional, string ns)
void ExportDerivedMappings(StructMapping mapping)
static bool NamespacesEqual(string ns1, string ns2)
void ExportTypeMapping(XmlTypeMapping xmlTypeMapping)
void AddXmlnsAnnotation(XmlSchemaComplexType type, string xmlnsMemberName)
void ExportRootIfNecessary(TypeScope typeScope)
static bool IsAnyType(XmlSchemaType schemaType, bool mixed, bool unbounded)
void ExportMembersMapping(XmlMembersMapping xmlMembersMapping)
void ExportMembersMapping(XmlMembersMapping xmlMembersMapping, bool exportEnclosingType)
readonly Hashtable _elements
void AddSchemaImport(string ns, string referencingNs)
void ExportMapping(Mapping mapping, string ns, bool isAny)
XmlSchemaType ExportAnonymousPrimitiveMapping(PrimitiveMapping mapping)
string ExportAnyType(string? ns)
static string ExportDefaultValue(TypeMapping mapping, object value)
static XmlSchemaType FindSchemaType(string name, XmlSchemaObjectCollection items)
void AddSchemaItem(XmlSchemaObject item, string ns, string referencingNs)
void CheckForDuplicateType(TypeMapping mapping, string newNamespace)
XmlSchema AddSchema(string targetNamespace)
readonly Hashtable _attributes
XmlQualifiedName ExportNonXsdPrimitiveMapping(PrimitiveMapping mapping, string ns)
XmlSchemaType ExportSpecialMapping(SpecialMapping mapping, string ns, bool isAny, XmlSchemaElement element)
readonly XmlSchemas _schemas
XmlSchemaType ExportMembersMapping(MembersMapping mapping, string ns)
XmlQualifiedName? ExportTypeMapping(XmlMembersMapping xmlMembersMapping)
bool SchemaContainsItem(XmlSchemaObject item, string ns)
void ExportArrayMapping(ArrayMapping mapping, string ns, XmlSchemaElement element)
readonly Hashtable _references
void ExportAttributeAccessor(XmlSchemaComplexType type, AttributeAccessor accessor, bool valueTypeOptional, string ns)
XmlQualifiedName ExportPrimitiveMapping(PrimitiveMapping mapping, string ns)
XmlQualifiedName ExportStructMapping(StructMapping mapping, string ns, XmlSchemaElement element)
void ExportTypeMembers(XmlSchemaComplexType type, MemberMapping[] members, string name, string ns, bool hasSimpleContent, bool openModel)
XmlSchemaType ExportEnumMapping(EnumMapping mapping, string ns)
void ExportElementAccessors(XmlSchemaGroupBase group, ElementAccessor[] accessors, bool repeats, bool valueTypeOptional, string ns)
void CheckScope(TypeScope scope)
XmlSchemaExporter(XmlSchemas schemas)
string? ExportAnyType(XmlMembersMapping members)
XmlSchemaImport FindImport(XmlSchema schema, string ns)
readonly Hashtable _types
void ExportElementMapping(XmlSchemaElement element, Mapping mapping, string ns, bool isAny)
static bool IsMixed(XmlSchemaType type)
bool Contains(XmlSchema schema)
int Add(XmlSchema schema, bool delay)
virtual ? XmlNode InsertBefore(XmlNode newChild, XmlNode? refChild)
static readonly XmlQualifiedName Empty
XmlSchemaContentProcessing