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