1 write to validator
System.Xml (1)
System\Xml\Core\XsdValidatingReader.cs (1)
171
validator
= new XmlSchemaValidator(coreReaderNameTable, readerSettings.Schemas, thisNSResolver, readerSettings.ValidationFlags);
54 references to validator
System.Xml (54)
System\Xml\Core\XsdValidatingReader.cs (39)
172
validator
.XmlResolver = this.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 = this.lineInfo;
177
if (
validator
.ProcessSchemaHints) {
178
validator
.SchemaSet.ReaderSettings.DtdProcessing = readerSettings.DtdProcessing;
180
validator
.SetDtdSchemaInfo(reader.DtdInfo);
182
validator
.Initialize(partialValidationType);
185
validator
.Initialize();
198
settings.Schemas =
validator
.SchemaSet;
200
settings.ValidationFlags =
validator
.ValidationFlags;
217
if (nodeType == XmlNodeType.Whitespace && (
validator
.CurrentContentType == XmlSchemaContentType.TextOnly ||
validator
.CurrentContentType == XmlSchemaContentType.Mixed)) {
229
string prefix =
validator
.GetDefaultAttributePrefix(cachedNode.Namespace);
1100
validator
.EndValidation();
1192
validator
.SkipToEndElement(xmlSchemaInfo);
1565
validator
.ValidateWhitespace(GetStringValue);
1570
validator
.ValidateText(GetStringValue);
1585
validator
.SetDtdSchemaInfo(coreReader.DtdInfo);
1605
inlineSchemaParser = new Parser(SchemaType.XSD, coreReaderNameTable,
validator
.SchemaSet.GetSchemaNames(coreReaderNameTable), validationEvent);
1654
validator
.ValidateElement(coreReader.LocalName, coreReader.NamespaceURI, xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
1656
validator
.ValidateEndOfAttributes(xmlSchemaInfo);
1665
atomicValue =
validator
.ValidateEndElement(xmlSchemaInfo);
1699
attributePSVI.typedAttributeValue =
validator
.ValidateAttribute(localName, ns, valueGetter, attributePSVI.attributeSchemaInfo);
1711
validator
.GetUnspecifiedDefaultAttributes(defaultAttributes, true);
1831
validator
.AddSchema(schema);
1884
if (
validator
.CurrentContentType == XmlSchemaContentType.TextOnly) { //if current element is of simple type
1991
validator
.ValidateText(GetStringValue);
1996
validator
.ValidateWhitespace(GetStringValue);
2004
atomicValue =
validator
.ValidateEndElement(xmlSchemaInfo);
2043
validator
.ValidateText(GetStringValue);
2048
validator
.ValidateWhitespace(GetStringValue);
2056
atomicValue =
validator
.ValidateEndElement(xmlSchemaInfo); //?? pop namespaceManager scope
2088
validator
.ValidateText(GetStringValue);
2093
validator
.ValidateWhitespace(GetStringValue);
2101
atomicValue =
validator
.ValidateEndElement(xmlSchemaInfo); //?? pop namespaceManager scope
2146
typedValue =
validator
.GetConcatenatedValue();
2185
return
validator
.GetConcatenatedValue();
System\Xml\Core\XsdValidatingReaderAsync.cs (15)
181
validator
.EndValidation();
200
validator
.EndValidation();
292
validator
.SkipToEndElement(xmlSchemaInfo);
411
validator
.ValidateWhitespace(GetStringValue);
416
validator
.ValidateText(GetStringValue);
430
validator
.SetDtdSchemaInfo(coreReader.DtdInfo);
452
inlineSchemaParser = new Parser(SchemaType.XSD, coreReaderNameTable,
validator
.SchemaSet.GetSchemaNames(coreReaderNameTable), validationEvent);
501
validator
.ValidateElement(coreReader.LocalName, coreReader.NamespaceURI, xmlSchemaInfo, xsiType, xsiNil, xsiSchemaLocation, xsiNoNamespaceSL);
503
validator
.ValidateEndOfAttributes(xmlSchemaInfo);
512
atomicValue =
validator
.ValidateEndElement(xmlSchemaInfo);
540
validator
.AddSchema(schema);
600
if (
validator
.CurrentContentType == XmlSchemaContentType.TextOnly) { //if current element is of simple type
718
validator
.ValidateText(GetStringValue);
723
validator
.ValidateWhitespace(GetStringValue);
731
atomicValue =
validator
.ValidateEndElement(xmlSchemaInfo);