70 references to SchemaType
dotnet-svcutil-lib (70)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (1)
1960
_inlineSchemaParser = new Parser(
SchemaType
.XSD, _coreReaderNameTable, _validator.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent);
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (1)
536
_inlineSchemaParser = new Parser(
SchemaType
.XSD, _coreReaderNameTable, _validator.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent);
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (4)
613
if (schInfo.SchemaType ==
SchemaType
.DTD)
633
XmlQualifiedName qname = new XmlQualifiedName(elem.LocalName, schInfo.SchemaType ==
SchemaType
.DTD ? elem.Prefix : elem.NamespaceURI);
1631
if ((schInfo.SchemaType ==
SchemaType
.DTD && attdef.Name.Namespace == attrPrefix) ||
1632
(schInfo.SchemaType !=
SchemaType
.DTD && attdef.Name.Namespace == attrNamespaceURI))
FrameworkFork\Microsoft.Xml\Xml\schema\autovalidator.cs (5)
67
if (schemaInfo.SchemaType ==
SchemaType
.XSD)
69
else if (schemaInfo.SchemaType ==
SchemaType
.XDR)
76
SchemaType
schemaType = SchemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
77
if (schemaType ==
SchemaType
.XSD)
81
else if (schemaType ==
SchemaType
.XDR)
FrameworkFork\Microsoft.Xml\Xml\schema\DtdParser.cs (1)
264
_schemaInfo.SchemaType =
SchemaType
.DTD;
FrameworkFork\Microsoft.Xml\Xml\schema\dtdvalidator.cs (2)
55
if (schemaInfo.SchemaType ==
SchemaType
.DTD)
257
if (schemaInfo.SchemaType ==
SchemaType
.DTD)
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (18)
17
private
SchemaType
_schemaType;
42
public Parser(
SchemaType
schemaType, XmlNameTable nameTable, SchemaNames schemaNames, ValidationEventHandler eventHandler)
53
public
SchemaType
Parse(XmlReader reader, string targetNamespace)
78
SchemaType
rootType = _schemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
86
if (_schemaType ==
SchemaType
.XSD)
94
Debug.Assert(_schemaType ==
SchemaType
.XDR);
96
_xdrSchema.SchemaType =
SchemaType
.XDR;
102
private bool CheckSchemaRoot(
SchemaType
rootType, out string code)
105
if (_schemaType ==
SchemaType
.None)
111
case
SchemaType
.XSD:
112
if (_schemaType !=
SchemaType
.XSD)
119
case
SchemaType
.XDR:
120
if (_schemaType ==
SchemaType
.XSD)
125
else if (_schemaType !=
SchemaType
.XDR)
132
case
SchemaType
.DTD: //Did not detect schema type that can be parsed by this parser
133
case
SchemaType
.None:
135
if (_schemaType ==
SchemaType
.XSD)
148
public
SchemaType
FinishParsing()
FrameworkFork\Microsoft.Xml\Xml\schema\ParserAsync.cs (5)
18
public async Task<
SchemaType
> ParseAsync(XmlReader reader, string targetNamespace)
43
SchemaType
rootType = _schemaNames.SchemaTypeFromRoot(reader.LocalName, reader.NamespaceURI);
51
if (_schemaType ==
SchemaType
.XSD)
59
Debug.Assert(_schemaType ==
SchemaType
.XDR);
61
_xdrSchema.SchemaType =
SchemaType
.XDR;
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
404
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (1)
237
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (4)
46
private
SchemaType
_schemaType;
53
_schemaType =
SchemaType
.None;
102
internal
SchemaType
SchemaType
338
if (_schemaType ==
SchemaType
.None)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaNames.cs (4)
456
public
SchemaType
SchemaTypeFromRoot(string localName, string ns)
460
return
SchemaType
.XSD;
464
return
SchemaType
.XDR;
468
return
SchemaType
.None;
FrameworkFork\Microsoft.Xml\Xml\schema\XdrBuilder.cs (2)
534
Parser parser = new Parser(
SchemaType
.XDR, _NameTable, _SchemaNames, _validationEventHandler);
642
builder._SchemaInfo.SchemaType =
SchemaType
.XDR;
FrameworkFork\Microsoft.Xml\Xml\schema\xdrvalidator.cs (4)
97
_inlineSchemaParser = new Parser(
SchemaType
.XDR, NameTable, SchemaNames, EventHandler);
346
Parser parser = new Parser(
SchemaType
.XDR, NameTable, SchemaNames, EventHandler);
392
if (schemaInfo.SchemaType !=
SchemaType
.XDR)
402
private bool HasSchema { get { return schemaInfo.SchemaType !=
SchemaType
.None; } }
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (3)
102
Parser parser = new Parser(
SchemaType
.XSD, nameTable, new SchemaNames(nameTable), validationEventHandler);
230
sInfo.SchemaType =
SchemaType
.XSD;
242
sInfo.SchemaType =
SchemaType
.XSD;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (5)
148
Parser parser = new Parser(
SchemaType
.None, readerNameTable, GetSchemaNames(readerNameTable), _validationEventHandler);
150
SchemaType
schemaType;
161
if (schemaType ==
SchemaType
.XSD)
163
schemaInfo.SchemaType =
SchemaType
.XSD;
189
schemaInfo.SchemaType =
SchemaType
.XSD;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (2)
1244
Parser parser = new Parser(
SchemaType
.XSD, readerNameTable, schemaNames, _eventHandler);
1246
SchemaType
schemaType;
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (7)
154
inlineSchemaInfo.SchemaType =
SchemaType
.XSD;
180
_inlineSchemaParser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
593
Parser parser = new Parser(
SchemaType
.XSD, NameTable, SchemaNames, EventHandler);
595
SchemaType
schemaType = parser.Parse(reader, uri);
599
if (schemaType ==
SchemaType
.XSD)
649
if (schemaInfo.SchemaType !=
SchemaType
.XSD)
662
private bool HasSchema { get { return schemaInfo.SchemaType !=
SchemaType
.None; } }