19 writes to ContentValidator
System.Private.Xml (19)
System\Xml\Schema\DtdParser.cs (4)
965
elementDecl.
ContentValidator
= ContentValidator.Empty;
968
elementDecl.
ContentValidator
= ContentValidator.Any;
982
elementDecl.
ContentValidator
= pcv.Finish(true);
994
elementDecl.
ContentValidator
= pcv.Finish(true);
System\Xml\Schema\DtdParserAsync.cs (4)
609
elementDecl.
ContentValidator
= ContentValidator.Empty;
612
elementDecl.
ContentValidator
= ContentValidator.Any;
626
elementDecl.
ContentValidator
= pcv.Finish(true);
638
elementDecl.
ContentValidator
= pcv.Finish(true);
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
622
decl.
ContentValidator
= ContentValidator.TextOnly;
771
decl.
ContentValidator
= CompileComplexContent(complexType);
System\Xml\Schema\SchemaSetCompiler.cs (2)
712
decl.
ContentValidator
= ContentValidator.TextOnly;
847
decl.
ContentValidator
= CompileComplexContent(complexType);
System\Xml\Schema\XdrBuilder.cs (5)
853
builder._ElementDef._ElementDecl.
ContentValidator
= ContentValidator.TextOnly;
868
builder._ElementDef._ElementDecl.
ContentValidator
= ContentValidator.Empty;
956
builder._ElementDef._ElementDecl!.
ContentValidator
= ContentValidator.Any;
996
builder._ElementDef._ElementDecl!.
ContentValidator
= builder._contentValidator.Finish(true);
1439
builder._ElementDef._ElementDecl!.
ContentValidator
= ContentValidator.TextOnly;
System\Xml\Schema\XmlSchemaComplexType.cs (2)
49
untypedAny.ElementDecl.
ContentValidator
= AnyTypeContentValidator;
82
localAnyType.ElementDecl.
ContentValidator
= anyContentValidator;
50 references to ContentValidator
System.Private.Xml (50)
System\Xml\Schema\BaseValidator.cs (2)
180
ContentValidator contentValidator = context.ElementDecl!.
ContentValidator
!;
212
XmlSchemaContentType contentType = context.ElementDecl!.
ContentValidator
!.ContentType;
System\Xml\Schema\DtdParser.cs (2)
793
if (elementDecl.
ContentValidator
!= null &&
794
elementDecl.
ContentValidator
.ContentType == XmlSchemaContentType.Empty &&
System\Xml\Schema\DtdParserAsync.cs (2)
437
if (elementDecl.
ContentValidator
!= null &&
438
elementDecl.
ContentValidator
.ContentType == XmlSchemaContentType.Empty &&
System\Xml\Schema\DtdValidator.cs (6)
111
context.ElementDecl.
ContentValidator
!.ContentType == XmlSchemaContentType.ElementOnly)
124
if (context!.ElementDecl!.
ContentValidator
== ContentValidator.Empty)
153
context.ElementDecl!.
ContentValidator
!.ValidateElement(elementName, context, out errorCode);
249
elementDecl.
ContentValidator
!.InitValidation(context);
276
if (!context.ElementDecl.
ContentValidator
!.CompleteValidation(context))
296
get { return context!.ElementDecl != null ? context.ElementDecl.
ContentValidator
!.PreserveWhitespace : false; }
System\Xml\Schema\SchemaCollectionCompiler.cs (7)
876
else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl!.
ContentValidator
!.IsEmptiable)
1030
Debug.Assert(baseType.ElementDecl.
ContentValidator
!= null);
1032
if (baseType.ElementDecl != null && !baseType.ElementDecl.
ContentValidator
!.IsEmptiable)
2286
if (decl.
ContentValidator
!= null)
2288
if (decl.
ContentValidator
.ContentType == XmlSchemaContentType.TextOnly)
2305
else if (decl.
ContentValidator
.ContentType != XmlSchemaContentType.Mixed || !decl.
ContentValidator
.IsEmptiable)
System\Xml\Schema\SchemaInfo.cs (1)
161
if (!ed.
ContentValidator
!.IsOpen || qname.Namespace.Length == 0)
System\Xml\Schema\SchemaSetCompiler.cs (6)
956
else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl!.
ContentValidator
!.IsEmptiable)
1109
if (baseType.ElementDecl != null && !baseType.ElementDecl.
ContentValidator
!.IsEmptiable)
2745
if (decl.
ContentValidator
!= null)
2747
if (decl.
ContentValidator
.ContentType == XmlSchemaContentType.TextOnly || (decl.
ContentValidator
.ContentType == XmlSchemaContentType.Mixed && decl.
ContentValidator
.IsEmptiable))
System\Xml\Schema\XdrValidator.cs (4)
112
context.ElementDecl!.
ContentValidator
!.ValidateElement(elementName, context, out errorCode);
161
context.ElementDecl.
ContentValidator
!.InitValidation(context);
176
if (!context.ElementDecl.
ContentValidator
!.CompleteValidation(context))
406
get { return context!.ElementDecl != null ? context.ElementDecl.
ContentValidator
!.PreserveWhitespace : false; }
System\Xml\Schema\XmlSchemaComplexType.cs (1)
119
return s_anyTypeLax.ElementDecl!.
ContentValidator
!;
System\Xml\Schema\XmlSchemaValidator.cs (15)
452
elementDecl.
ContentValidator
!.InitValidation(_context);
751
XmlSchemaContentType contentType = _context.ElementDecl!.
ContentValidator
!.ContentType;
775
ArrayList? names = _context.ElementDecl.
ContentValidator
.ExpectedParticles(_context, false, _schemaSet);
830
XmlSchemaContentType contentType = _context.ElementDecl!.
ContentValidator
!.ContentType;
958
ArrayList? expected = _context.ElementDecl.
ContentValidator
!.ExpectedParticles(_context, false, _schemaSet);
1120
return _context.ElementDecl.
ContentValidator
!.ContentType;
1193
XmlSchemaContentType contentType = contextElementDecl.
ContentValidator
!.ContentType;
1229
if (!contextElementDecl.
ContentValidator
.CompleteValidation(_context))
1320
ContentValidator contentValidator = _context.ElementDecl!.
ContentValidator
!;
1332
particle = _context.ElementDecl.
ContentValidator
!.ValidateElement(head, _context, out errorCode);
1818
Debug.Assert(elementDecl.
ContentValidator
!.ContentType == XmlSchemaContentType.Mixed && elementDecl.DefaultValueTyped != null);
2259
if (currentElementDecl.Datatype == null || currentElementDecl.
ContentValidator
!.ContentType == XmlSchemaContentType.Mixed)
2515
ContentValidator contentValidator = context.ElementDecl.
ContentValidator
!;
2577
names = context.ElementDecl.
ContentValidator
!.ExpectedParticles(context, true, schemaSet);
2581
names = context.ElementDecl.
ContentValidator
!.ExpectedElements(context, true);
System\Xml\Schema\XsdValidator.cs (4)
198
particle = context.ElementDecl!.
ContentValidator
!.ValidateElement(elementName, context, out errorCode);
249
context.ElementDecl.
ContentValidator
!.InitValidation(context);
335
if (!context.ElementDecl.
ContentValidator
!.CompleteValidation(context))
650
get { return context!.ElementDecl != null ? context.ElementDecl.
ContentValidator
!.PreserveWhitespace : false; }