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;
178
if (
_validator
.ProcessSchemaHints)
180
_validator
.SchemaSet.ReaderSettings.DtdProcessing = readerSettings.DtdProcessing;
183
_validator
.SetDtdSchemaInfo(reader.DtdInfo);
186
_validator
.Initialize(partialValidationType);
190
_validator
.Initialize();
202
settings.Schemas =
_validator
.SchemaSet;
204
settings.ValidationFlags =
_validator
.ValidationFlags;
226
if (nodeType == XmlNodeType.Whitespace && (
_validator
.CurrentContentType == XmlSchemaContentType.TextOnly ||
_validator
.CurrentContentType == XmlSchemaContentType.Mixed))
244
string? 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);
2176
attributePSVI.typedAttributeValue =
_validator
.ValidateAttribute(localName, ns, _valueGetter, attributePSVI.attributeSchemaInfo);
2193
_validator
.GetUnspecifiedDefaultAttributes(_defaultAttributes, true);
2347
_validator
.AddSchema(schema);
2404
if (
_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
2741
typedValue =
_validator
.GetConcatenatedValue();
2790
return
_validator
.GetConcatenatedValue();
System\Xml\Core\XsdValidatingReaderAsync.cs (15)
232
_validator
.EndValidation();
256
_validator
.EndValidation();
368
_validator
.SkipToEndElement(_xmlSchemaInfo);
509
return ValidateWhitespace(GetValueAsync(),
_validator
);
514
return 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);
731
if (
_validator
.CurrentContentType == XmlSchemaContentType.TextOnly)
873
_validator
.ValidateText(await GetValueAsync().ConfigureAwait(false));
878
_validator
.ValidateWhitespace(await GetValueAsync().ConfigureAwait(false));
886
_atomicValue =
_validator
.ValidateEndElement(_xmlSchemaInfo);