1 write to _validator
System.Private.Xml (1)
System\Xml\Core\XsdValidatingReader.cs (1)
171_validator = new XmlSchemaValidator(_coreReaderNameTable, readerSettings.Schemas, _thisNSResolver, readerSettings.ValidationFlags);
55 references to _validator
System.Private.Xml (55)
System\Xml\Core\XsdValidatingReader.cs (40)
168[MemberNotNull(nameof(_validator))] 172_validator.XmlResolver = _xmlResolver; 173_validator.SourceUri = XmlConvert.ToUri(reader.BaseURI); // Not using XmlResolver.ResolveUri as it checks for relative Uris,reader.BaseURI will be absolute file paths or string.Empty 174_validator.ValidationEventSender = this; 175_validator.ValidationEventHandler += readerSettings.GetEventHandler(); 176_validator.LineInfoProvider = _lineInfo; 178if (_validator.ProcessSchemaHints) 180_validator.SchemaSet.ReaderSettings.DtdProcessing = readerSettings.DtdProcessing; 183_validator.SetDtdSchemaInfo(reader.DtdInfo); 186_validator.Initialize(partialValidationType); 190_validator.Initialize(); 202settings.Schemas = _validator.SchemaSet; 204settings.ValidationFlags = _validator.ValidationFlags; 226if (nodeType == XmlNodeType.Whitespace && (_validator.CurrentContentType == XmlSchemaContentType.TextOnly || _validator.CurrentContentType == XmlSchemaContentType.Mixed)) 244string? prefix = _validator.GetDefaultAttributePrefix(_cachedNode.Namespace); 1419_validator.EndValidation(); 1530_validator.SkipToEndElement(_xmlSchemaInfo); 2014_validator.ValidateWhitespace(_valueGetter); 2019_validator.ValidateText(_valueGetter); 2034_validator.SetDtdSchemaInfo(_coreReader.DtdInfo); 2052_inlineSchemaParser = new Parser(SchemaType.XSD, _coreReaderNameTable, _validator.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent); 2118_validator.ValidateElement(_coreReader.LocalName, _coreReader.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL); 2120_validator.ValidateEndOfAttributes(_xmlSchemaInfo); 2132_atomicValue = _validator.ValidateEndElement(_xmlSchemaInfo); 2176attributePSVI.typedAttributeValue = _validator.ValidateAttribute(localName, ns, _valueGetter, attributePSVI.attributeSchemaInfo); 2193_validator.GetUnspecifiedDefaultAttributes(_defaultAttributes, true); 2347_validator.AddSchema(schema); 2404if (_validator.CurrentContentType == XmlSchemaContentType.TextOnly) 2535_validator.ValidateText(_valueGetter); 2540_validator.ValidateWhitespace(_valueGetter); 2548_atomicValue = _validator.ValidateEndElement(_xmlSchemaInfo); 2603_validator.ValidateText(_valueGetter); 2608_validator.ValidateWhitespace(_valueGetter); 2616_atomicValue = _validator.ValidateEndElement(_xmlSchemaInfo); //?? pop namespaceManager scope 2664_validator.ValidateText(_valueGetter); 2669_validator.ValidateWhitespace(_valueGetter); 2677_atomicValue = _validator.ValidateEndElement(_xmlSchemaInfo); //?? pop namespaceManager scope 2741typedValue = _validator.GetConcatenatedValue(); 2790return _validator.GetConcatenatedValue();
System\Xml\Core\XsdValidatingReaderAsync.cs (15)
232_validator.EndValidation(); 256_validator.EndValidation(); 368_validator.SkipToEndElement(_xmlSchemaInfo); 509return ValidateWhitespace(GetValueAsync(), _validator); 514return ValidateText(GetValueAsync(), _validator); 527_validator.SetDtdSchemaInfo(_coreReader.DtdInfo); 551_inlineSchemaParser = new Parser(SchemaType.XSD, _coreReaderNameTable, _validator.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent); 616_validator.ValidateElement(_coreReader.LocalName, _coreReader.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL); 618_validator.ValidateEndOfAttributes(_xmlSchemaInfo); 630_atomicValue = _validator.ValidateEndElement(_xmlSchemaInfo); 670_validator.AddSchema(schema); 731if (_validator.CurrentContentType == XmlSchemaContentType.TextOnly) 873_validator.ValidateText(await GetValueAsync().ConfigureAwait(false)); 878_validator.ValidateWhitespace(await GetValueAsync().ConfigureAwait(false)); 886_atomicValue = _validator.ValidateEndElement(_xmlSchemaInfo);