129 s_xml =
System.
Xml.
Schema.
XmlSchema.
Read(
new StringReader(
"<?xml version='1.0' encoding='UTF-8' ?>\r\n<xs:schema targetNamespace='http://www.w3.org/XML/1998/namespace' xmlns:xs='http://www.w3.org/2001/XMLSchema' xml:lang='en'>\r\n <xs:attribute name='lang' type='xs:language'/>\r\n <xs:attribute name='space'>\r\n <xs:simpleType>\r\n <xs:restriction base='xs:NCName'>\r\n <xs:enumeration value='default'/>\r\n <xs:enumeration value='preserve'/>\r\n </xs:restriction>\r\n </xs:simpleType>\r\n </xs:attribute>\r\n <xs:attribute name='base' type='xs:anyURI'/>\r\n <xs:attribute name='id' type='xs:ID' />\r\n <xs:attributeGroup name='specialAttrs'>\r\n <xs:attribute ref='xml:base'/>\r\n <xs:attribute ref='xml:lang'/>\r\n <xs:attribute ref='xml:space'/>\r\n </xs:attributeGroup>\r\n</xs:schema>"),
null);
346 if (!
schema.IsPreprocessed)
452 else if (
include.Schema ==
null)
454 if (
include.SchemaLocation !=
null)
528 while (
item.Parent !=
null)
554 if (ns ==
null || ns.Length == 0)
774 cache.GenerateSchemaGraph(
this);
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
Enumerator GetEnumerator()
void Add(TKey key, TValue value)
virtual bool Contains(object key)
virtual ICollection Values
virtual void Add(object key, object? value)
static CultureInfo InvariantCulture
static string XmlSchemaNamedItem
static string XmlSchemaContentDef
static string XmlSchemaItem
static string XmlSchemaCompiled
static string XmlSerializableMergeItem
static string XmlSchemaElementReference
static string Format(string resourceFormat, object p1)
static string XmlSchemaDuplicateNamespace
static string XmlSchemaIncludeLocation
static string XmlSchemaAttributeReference
static string XmlSchemaSyntaxErrorDetails
XmlSchema Reprocess(XmlSchema schema)
XmlSchema? Remove(XmlSchema schema)
bool Contains(string? targetNamespace)
XmlSchema? Add(string? targetNamespace, string schemaUri)
static ? XmlSchema Read(TextReader reader, ValidationEventHandler? validationEventHandler)
void Remove(XmlSchema schema)
int IndexOf(XmlSchema schema)
bool Contains(string? targetNamespace)
void Merge(IList originals, XmlSchema schema)
void SetCache(SchemaObjectCache cache, bool shareTypes)
override void OnSet(int index, object? oldValue, object? newValue)
bool Contains(XmlSchema schema)
bool IsReference(XmlSchemaObject type)
static void Preprocess(XmlSchema schema)
void AddReference(XmlSchema schema)
void Compile(ValidationEventHandler? handler, bool fullCompile)
static volatile XmlSchema s_xsd
static string MergeFailedMessage(XmlSchemaObject src, XmlSchemaObject dest, string ns)
override void OnInsert(int index, object? value)
static XmlSchema?? XmlSchema
int Add(XmlSchema schema, Uri? baseUri)
int Add(XmlSchema schema, bool delay)
void AddImport(IList schemas, string ns)
static string ItemName(XmlSchemaObject o)
override void OnRemove(int index, object? value)
void AddName(XmlSchema schema)
void Merge(XmlSchema schema)
void Insert(int index, XmlSchema schema)
static volatile XmlSchema s_xml
static void IgnoreCompileErrors(object sender, ValidationEventArgs args)
void Add(XmlSchemas schemas)
void CopyTo(XmlSchema[] array, int index)
void RemoveName(XmlSchema schema)
static XmlSchema CreateFakeXsdSchema(string ns, string name)
int Add(XmlSchema schema)
static Exception CreateValidationException(XmlSchemaException exception, string message)
static XmlQualifiedName GetParentName(XmlSchemaObject item)
object? Find(XmlQualifiedName name, Type type)
static string GetSchemaItem(XmlSchemaObject o, string ns, string details)
void Prepare(XmlSchema schema)
static XmlSchema XsdSchema
object Find(XmlQualifiedName name, Type type, bool checkCache)
static bool IsDataSet(XmlSchema schema)
static string Dump(XmlSchemaObject o)
IList GetSchemas(string? ns)
XmlSchemaObject Find(XmlSchemaObject o, IList originals)
static readonly XmlQualifiedName Empty
static XmlWriter Create(string outputFileName)