70 references to SchemaType
System.Xml (70)
System\Xml\Core\XsdValidatingReader.cs (1)
1605
inlineSchemaParser = new Parser(
SchemaType
.XSD, coreReaderNameTable, validator.SchemaSet.GetSchemaNames(coreReaderNameTable), validationEvent);
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
452
inlineSchemaParser = new Parser(
SchemaType
.XSD, coreReaderNameTable, validator.SchemaSet.GetSchemaNames(coreReaderNameTable), validationEvent);
System\Xml\Dom\XmlDocument.cs (4)
551
if ( schInfo.SchemaType ==
SchemaType
.DTD )
568
XmlQualifiedName qname = new XmlQualifiedName( elem.LocalName, schInfo.SchemaType ==
SchemaType
.DTD ? elem.Prefix : elem.NamespaceURI );
1407
if ( ( schInfo.SchemaType ==
SchemaType
.DTD && attdef.Name.Namespace == attrPrefix ) ||
1408
( schInfo.SchemaType !=
SchemaType
.DTD && attdef.Name.Namespace == attrNamespaceURI ) ) {
System\Xml\Schema\AutoValidator.cs (5)
57
if(schemaInfo.SchemaType ==
SchemaType
.XSD)
59
else if(schemaInfo.SchemaType ==
SchemaType
.XDR)
65
SchemaType
schemaType = SchemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
66
if (schemaType ==
SchemaType
.XSD) {
69
else if (schemaType ==
SchemaType
.XDR) {
System\Xml\Schema\DtdParser.cs (1)
270
schemaInfo.SchemaType =
SchemaType
.DTD;
System\Xml\Schema\DtdValidator.cs (2)
53
if (schemaInfo.SchemaType ==
SchemaType
.DTD) {
218
if (schemaInfo.SchemaType ==
SchemaType
.DTD) {
System\Xml\Schema\Parser.cs (18)
20
SchemaType
schemaType;
45
public Parser(
SchemaType
schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler) {
55
public
SchemaType
Parse(XmlReader reader, string targetNamespace) {
76
SchemaType
rootType = schemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
83
if (schemaType ==
SchemaType
.XSD) {
89
Debug.Assert(schemaType ==
SchemaType
.XDR);
91
xdrSchema.SchemaType =
SchemaType
.XDR;
97
private bool CheckSchemaRoot(
SchemaType
rootType, out string code) {
99
if (schemaType ==
SchemaType
.None) {
103
case
SchemaType
.XSD:
104
if (schemaType !=
SchemaType
.XSD) {
110
case
SchemaType
.XDR:
111
if (schemaType ==
SchemaType
.XSD) {
115
else if (schemaType !=
SchemaType
.XDR) {
121
case
SchemaType
.DTD: //Did not detect schema type that can be parsed by this parser
122
case
SchemaType
.None:
124
if (schemaType ==
SchemaType
.XSD) {
136
public
SchemaType
FinishParsing() {
System\Xml\Schema\ParserAsync.cs (5)
15
public async Task<
SchemaType
> ParseAsync(XmlReader reader, string targetNamespace) {
36
SchemaType
rootType = schemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
43
if (schemaType ==
SchemaType
.XSD) {
49
Debug.Assert(schemaType ==
SchemaType
.XDR);
51
xdrSchema.SchemaType =
SchemaType
.XDR;
System\Xml\Schema\Preprocessor.cs (1)
337
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (1)
200
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
System\Xml\Schema\SchemaInfo.cs (4)
46
SchemaType
schemaType;
54
schemaType =
SchemaType
.None;
95
internal
SchemaType
SchemaType {
283
if (schemaType ==
SchemaType
.None) {
System\Xml\Schema\SchemaNames.cs (4)
451
public
SchemaType
SchemaTypeFromRoot(string localName, string ns) {
453
return
SchemaType
.XSD;
456
return
SchemaType
.XDR;
459
return
SchemaType
.None;
System\Xml\Schema\XdrBuilder.cs (2)
496
Parser parser = new Parser(
SchemaType
.XDR, _NameTable, _SchemaNames, validationEventHandler);
585
builder._SchemaInfo.SchemaType =
SchemaType
.XDR;
System\Xml\Schema\XdrValidator.cs (4)
85
inlineSchemaParser = new Parser(
SchemaType
.XDR, NameTable, SchemaNames, EventHandler);
286
Parser parser = new Parser(
SchemaType
.XDR, NameTable, SchemaNames, EventHandler);
323
if(schemaInfo.SchemaType !=
SchemaType
.XDR) {
332
private bool HasSchema { get { return schemaInfo.SchemaType !=
SchemaType
.None;}}
System\Xml\Schema\XmlSchema.cs (3)
106
Parser parser = new Parser(
SchemaType
.XSD, nameTable, new SchemaNames(nameTable), validationEventHandler);
215
sInfo.SchemaType =
SchemaType
.XSD;
226
sInfo.SchemaType =
SchemaType
.XSD;
System\Xml\Schema\XmlSchemaCollection.cs (5)
137
Parser parser = new Parser(
SchemaType
.None, readerNameTable, GetSchemaNames(readerNameTable), validationEventHandler);
139
SchemaType
schemaType;
148
if (schemaType ==
SchemaType
.XSD) {
149
schemaInfo.SchemaType =
SchemaType
.XSD;
172
schemaInfo.SchemaType =
SchemaType
.XSD;
System\Xml\Schema\XmlSchemaSet.cs (2)
1060
Parser parser = new Parser(
SchemaType
.XSD, readerNameTable, schemaNames, eventHandler);
1062
SchemaType
schemaType;
System\Xml\Schema\XsdValidator.cs (7)
136
inlineSchemaInfo.SchemaType =
SchemaType
.XSD;
157
inlineSchemaParser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
487
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
489
SchemaType
schemaType = parser.Parse(reader, uri);
493
if (schemaType ==
SchemaType
.XSD) {
533
if(schemaInfo.SchemaType !=
SchemaType
.XSD) {
544
private bool HasSchema { get { return schemaInfo.SchemaType !=
SchemaType
.None;}}