68 references to SchemaType
System.Private.Xml (68)
System\Xml\Core\XsdValidatingReader.cs (1)
2052
_inlineSchemaParser = new Parser(
SchemaType
.XSD, _coreReaderNameTable, _validator.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent);
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
551
_inlineSchemaParser = new Parser(
SchemaType
.XSD, _coreReaderNameTable, _validator.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent);
System\Xml\Dom\XmlDocument.cs (4)
676
if (schInfo!.SchemaType ==
SchemaType
.DTD)
698
XmlQualifiedName qname = new XmlQualifiedName(elem.LocalName, schInfo.SchemaType ==
SchemaType
.DTD ? elem.Prefix : elem.NamespaceURI);
1680
if ((schInfo!.SchemaType ==
SchemaType
.DTD && attdef.Name.Namespace == attrPrefix) ||
1681
(schInfo.SchemaType !=
SchemaType
.DTD && attdef.Name.Namespace == attrNamespaceURI))
System\Xml\Schema\AutoValidator.cs (5)
60
if (schemaInfo.SchemaType ==
SchemaType
.XSD)
62
else if (schemaInfo.SchemaType ==
SchemaType
.XDR)
69
SchemaType
schemaType = SchemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
70
if (schemaType ==
SchemaType
.XSD)
74
else if (schemaType ==
SchemaType
.XDR)
System\Xml\Schema\DtdParser.cs (1)
255
_schemaInfo.SchemaType =
SchemaType
.DTD;
System\Xml\Schema\DtdValidator.cs (2)
58
if (schemaInfo!.SchemaType ==
SchemaType
.DTD)
260
if (schemaInfo!.SchemaType ==
SchemaType
.DTD)
System\Xml\Schema\Parser.cs (18)
16
private
SchemaType
_schemaType;
38
public Parser(
SchemaType
schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler? eventHandler)
49
public
SchemaType
Parse(XmlReader reader, string? targetNamespace)
74
SchemaType
rootType = _schemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
81
if (_schemaType ==
SchemaType
.XSD)
89
Debug.Assert(_schemaType ==
SchemaType
.XDR);
91
_xdrSchema.SchemaType =
SchemaType
.XDR;
97
private bool CheckSchemaRoot(
SchemaType
rootType, [NotNullWhen(false)] out string? code)
100
if (_schemaType ==
SchemaType
.None)
106
case
SchemaType
.XSD:
107
if (_schemaType !=
SchemaType
.XSD)
114
case
SchemaType
.XDR:
115
if (_schemaType ==
SchemaType
.XSD)
120
else if (_schemaType !=
SchemaType
.XDR)
127
case
SchemaType
.DTD: //Did not detect schema type that can be parsed by this parser
128
case
SchemaType
.None:
130
if (_schemaType ==
SchemaType
.XSD)
143
public
SchemaType
FinishParsing()
System\Xml\Schema\ParserAsync.cs (4)
34
SchemaType
rootType = _schemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
42
if (_schemaType ==
SchemaType
.XSD)
50
Debug.Assert(_schemaType ==
SchemaType
.XDR);
52
_xdrSchema.SchemaType =
SchemaType
.XDR;
System\Xml\Schema\Preprocessor.cs (1)
385
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
232
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
System\Xml\Schema\SchemaInfo.cs (4)
41
private
SchemaType
_schemaType;
48
_schemaType =
SchemaType
.None;
79
internal
SchemaType
SchemaType
290
if (_schemaType ==
SchemaType
.None)
System\Xml\Schema\SchemaNames.cs (4)
446
public
SchemaType
SchemaTypeFromRoot(string localName, string ns)
450
return
SchemaType
.XSD;
454
return
SchemaType
.XDR;
458
return
SchemaType
.None;
System\Xml\Schema\XdrBuilder.cs (2)
527
Parser parser = new Parser(
SchemaType
.XDR, _NameTable, _SchemaNames, _validationEventHandler);
631
builder._SchemaInfo.SchemaType =
SchemaType
.XDR;
System\Xml\Schema\XdrValidator.cs (4)
97
_inlineSchemaParser = new Parser(
SchemaType
.XDR, NameTable, SchemaNames, EventHandler);
348
Parser parser = new Parser(
SchemaType
.XDR, NameTable, SchemaNames, EventHandler);
390
if (schemaInfo.SchemaType !=
SchemaType
.XDR)
402
private bool HasSchema { get { return schemaInfo!.SchemaType !=
SchemaType
.None; } }
System\Xml\Schema\XmlSchema.cs (3)
75
Parser parser = new Parser(
SchemaType
.XSD, nameTable, new SchemaNames(nameTable), validationEventHandler);
195
sInfo.SchemaType =
SchemaType
.XSD;
203
sInfo.SchemaType =
SchemaType
.XSD;
System\Xml\Schema\XmlSchemaCollection.cs (5)
133
Parser parser = new Parser(
SchemaType
.None, readerNameTable, GetSchemaNames(readerNameTable), _validationEventHandler);
135
SchemaType
schemaType;
146
if (schemaType ==
SchemaType
.XSD)
148
schemaInfo.SchemaType =
SchemaType
.XSD;
167
schemaInfo.SchemaType =
SchemaType
.XSD;
System\Xml\Schema\XmlSchemaSet.cs (1)
1088
Parser parser = new Parser(
SchemaType
.XSD, readerNameTable, schemaNames, _eventHandler);
System\Xml\Schema\XsdValidator.cs (7)
151
inlineSchemaInfo.SchemaType =
SchemaType
.XSD;
177
_inlineSchemaParser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
582
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
584
SchemaType
schemaType = parser.Parse(reader, uri);
588
if (schemaType ==
SchemaType
.XSD)
633
if (schemaInfo.SchemaType !=
SchemaType
.XSD)
646
private bool HasSchema { get { return schemaInfo!.SchemaType !=
SchemaType
.None; } }