1 write to _validator
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (1)
180
_validator
= new XmlSchemaValidator(_coreReaderNameTable, readerSettings.Schemas, _thisNSResolver, readerSettings.ValidationFlags);
54 references to _validator
dotnet-svcutil-lib (54)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (39)
181
_validator
.XmlResolver = _xmlResolver;
182
_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
183
_validator
.ValidationEventSender = this;
184
_validator
.ValidationEventHandler += readerSettings.GetEventHandler();
185
_validator
.LineInfoProvider = _lineInfo;
186
if (
_validator
.ProcessSchemaHints)
188
_validator
.SchemaSet.ReaderSettings.DtdProcessing = readerSettings.DtdProcessing;
190
_validator
.SetDtdSchemaInfo(reader.DtdInfo);
193
_validator
.Initialize(partialValidationType);
197
_validator
.Initialize();
213
settings.Schemas =
_validator
.SchemaSet;
215
settings.ValidationFlags =
_validator
.ValidationFlags;
236
if (nodeType == XmlNodeType.Whitespace && (
_validator
.CurrentContentType == XmlSchemaContentType.TextOnly ||
_validator
.CurrentContentType == XmlSchemaContentType.Mixed))
252
string prefix =
_validator
.GetDefaultAttributePrefix(_cachedNode.Namespace);
1360
_validator
.EndValidation();
1467
_validator
.SkipToEndElement(_xmlSchemaInfo);
1918
_validator
.ValidateWhitespace(GetStringValue);
1923
_validator
.ValidateText(GetStringValue);
1938
_validator
.SetDtdSchemaInfo(_coreReader.DtdInfo);
1960
_inlineSchemaParser = new Parser(SchemaType.XSD, _coreReaderNameTable,
_validator
.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent);
2018
_validator
.ValidateElement(_coreReader.LocalName, _coreReader.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
2020
_validator
.ValidateEndOfAttributes(_xmlSchemaInfo);
2031
_atomicValue =
_validator
.ValidateEndElement(_xmlSchemaInfo);
2071
attributePSVI.typedAttributeValue =
_validator
.ValidateAttribute(localName, ns, _valueGetter, attributePSVI.attributeSchemaInfo);
2084
_validator
.GetUnspecifiedDefaultAttributes(_defaultAttributes, true);
2230
_validator
.AddSchema(schema);
2286
if (
_validator
.CurrentContentType == XmlSchemaContentType.TextOnly)
2406
_validator
.ValidateText(GetStringValue);
2411
_validator
.ValidateWhitespace(GetStringValue);
2419
_atomicValue =
_validator
.ValidateEndElement(_xmlSchemaInfo);
2466
_validator
.ValidateText(GetStringValue);
2471
_validator
.ValidateWhitespace(GetStringValue);
2479
_atomicValue =
_validator
.ValidateEndElement(_xmlSchemaInfo); //?? pop namespaceManager scope
2519
_validator
.ValidateText(GetStringValue);
2524
_validator
.ValidateWhitespace(GetStringValue);
2532
_atomicValue =
_validator
.ValidateEndElement(_xmlSchemaInfo); //?? pop namespaceManager scope
2587
typedValue =
_validator
.GetConcatenatedValue();
2636
return
_validator
.GetConcatenatedValue();
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (15)
229
_validator
.EndValidation();
252
_validator
.EndValidation();
360
_validator
.SkipToEndElement(_xmlSchemaInfo);
493
_validator
.ValidateWhitespace(GetStringValue);
498
_validator
.ValidateText(GetStringValue);
512
_validator
.SetDtdSchemaInfo(_coreReader.DtdInfo);
536
_inlineSchemaParser = new Parser(SchemaType.XSD, _coreReaderNameTable,
_validator
.SchemaSet.GetSchemaNames(_coreReaderNameTable), _validationEvent);
594
_validator
.ValidateElement(_coreReader.LocalName, _coreReader.NamespaceURI, _xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
596
_validator
.ValidateEndOfAttributes(_xmlSchemaInfo);
607
_atomicValue =
_validator
.ValidateEndElement(_xmlSchemaInfo);
642
_validator
.AddSchema(schema);
706
if (
_validator
.CurrentContentType == XmlSchemaContentType.TextOnly)
838
_validator
.ValidateText(GetStringValue);
843
_validator
.ValidateWhitespace(GetStringValue);
851
_atomicValue =
_validator
.ValidateEndElement(_xmlSchemaInfo);