10[XmlRoot(
"schema",
Namespace =
"http://www.w3.org/2001/XMLSchema")]
13 public const string Namespace =
"http://www.w3.org/2001/XMLSchema";
448 parser.Parse(reader,
null);
452 if (validationEventHandler !=
null)
502 if (namespaceManager !=
null)
506 if (
base.Namespaces !=
null)
508 flag =
base.Namespaces.TryLookupPrefix(
"xs",
out var _) ||
base.Namespaces.TryLookupNamespace(
"http://www.w3.org/2001/XMLSchema",
out var _);
510 if (!flag && namespaceManager.
LookupPrefix(
"http://www.w3.org/2001/XMLSchema") ==
null && namespaceManager.
LookupNamespace(
"xs") ==
null)
514 foreach (
string item in namespaceManager)
516 if (
item !=
"xml" &&
item !=
"xmlns")
522 else if (
base.Namespaces !=
null &&
base.Namespaces.Count > 0)
524 if (!
base.Namespaces.TryLookupPrefix(
"xs",
out var _) && !
base.Namespaces.TryLookupNamespace(
"http://www.w3.org/2001/XMLSchema",
out var _))
526 base.Namespaces.Add(
"xs",
"http://www.w3.org/2001/XMLSchema");
542 [
Obsolete(
"XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation instead.")]
543 public void Compile(ValidationEventHandler? validationEventHandler)
550 [
Obsolete(
"XmlSchema.Compile has been deprecated. Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation instead.")]
646 for (
int i = 0; i <
schema.Includes.Count; i++)
static int Increment(ref int location)
XmlSchemaObjectCollection Clone()
int Add(XmlSchemaObject item)
void Write(Stream stream)
XmlSchemaForm _attributeFormDefault
XmlSchemaObjectCollection _includes
XmlAttribute[] _moreAttributes
ArrayList _importedSchemas
readonly XmlSchemaObjectTable _identityConstraints
XmlSchemaObjectCollection _items
XmlSchemaObjectTable SchemaTypes
XmlSchemaObjectTable _types
XmlSchemaObjectTable AttributeGroups
static ? XmlSchema Read(Stream stream, ValidationEventHandler? validationEventHandler)
XmlSchemaDerivationMethod _finalDefault
XmlSchemaDerivationMethod FinalDefault
XmlSchemaDerivationMethod BlockDefault
XmlSchemaObjectCollection Includes
void Compile(ValidationEventHandler? validationEventHandler)
void Write(TextWriter writer, XmlNamespaceManager? namespaceManager)
ArrayList ImportedNamespaces
static ? XmlSchema Read(XmlReader reader, ValidationEventHandler? validationEventHandler)
XmlSchemaObjectTable Groups
XmlSchemaObjectTable _elements
static int s_globalIdCounter
void CompileSchemaInSet(XmlNameTable nameTable, ValidationEventHandler eventHandler, XmlSchemaCompilationSettings compilationSettings)
void SetIsCompiled(bool isCompiled)
XmlSchemaObjectTable Notations
XmlSchemaDerivationMethod _blockDefault
XmlSchemaObjectTable _attributes
override void SetUnhandledAttributes(XmlAttribute[] moreAttributes)
XmlSchemaObjectTable _attributeGroups
XmlSchemaForm ElementFormDefault
override? string IdAttribute
readonly XmlSchemaObjectTable _notations
XmlSchemaForm AttributeFormDefault
void Write(XmlWriter writer, XmlNamespaceManager? namespaceManager)
static ? XmlSchema Read(TextReader reader, ValidationEventHandler? validationEventHandler)
void Write(TextWriter writer)
readonly XmlSchemaObjectTable _groups
XmlSchemaObjectTable IdentityConstraints
void Write(XmlWriter writer)
override void AddAnnotation(XmlSchemaAnnotation annotation)
void Compile(ValidationEventHandler? validationEventHandler, XmlResolver? resolver)
void Write(Stream stream, XmlNamespaceManager? namespaceManager)
XmlAttribute?[] UnhandledAttributes
XmlSchemaObjectTable Attributes
ArrayList _importedNamespaces
bool CompileSchema(XmlSchemaCollection xsc, XmlResolver resolver, SchemaInfo schemaInfo, string ns, ValidationEventHandler validationEventHandler, XmlNameTable nameTable, bool CompileContentModel)
XmlSchemaForm _elementFormDefault
void GetExternalSchemasList(IList extList, XmlSchema schema)
ArrayList ImportedSchemas
const string InstanceNamespace
virtual ? string LookupNamespace(string prefix)
virtual ? string LookupPrefix(string uri)
DynamicallyAccessedMemberTypes
XmlSchemaDerivationMethod