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