19 writes to ContentValidator
System.Xml (19)
System\Xml\Schema\DtdParser.cs (4)
931elementDecl.ContentValidator = ContentValidator.Empty; 934elementDecl.ContentValidator = ContentValidator.Any; 947elementDecl.ContentValidator = pcv.Finish( true ); 959elementDecl.ContentValidator = pcv.Finish( true );
System\Xml\Schema\DtdParserAsync.cs (4)
576elementDecl.ContentValidator = ContentValidator.Empty; 579elementDecl.ContentValidator = ContentValidator.Any; 592elementDecl.ContentValidator = pcv.Finish( true ); 604elementDecl.ContentValidator = pcv.Finish( true );
System\Xml\Schema\SchemaCollectionCompiler.cs (2)
490decl.ContentValidator = ContentValidator.TextOnly; 608decl.ContentValidator = CompileComplexContent(complexType);
System\Xml\Schema\SchemaSetCompiler.cs (2)
557decl.ContentValidator = ContentValidator.TextOnly; 665decl.ContentValidator = CompileComplexContent(complexType);
System\Xml\Schema\XdrBuilder.cs (5)
774builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.TextOnly; 788builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.Empty; 861builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.Any; 892builder._ElementDef._ElementDecl.ContentValidator = builder._contentValidator.Finish(true); 1277builder._ElementDef._ElementDecl.ContentValidator = ContentValidator.TextOnly;
System\Xml\Schema\XmlSchemaComplexType.cs (2)
56untypedAnyType.ElementDecl.ContentValidator = AnyTypeContentValidator; 87localAnyType.ElementDecl.ContentValidator = anyContentValidator;
50 references to ContentValidator
System.Xml (50)
System\Xml\Schema\BaseValidator.cs (2)
147ContentValidator contentValidator = context.ElementDecl.ContentValidator; 170XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType;
System\Xml\Schema\DtdParser.cs (2)
750if ( elementDecl.ContentValidator != null && 751elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Empty &&
System\Xml\Schema\DtdParserAsync.cs (2)
395if ( elementDecl.ContentValidator != null && 396elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Empty &&
System\Xml\Schema\DtdValidator.cs (6)
98context.ElementDecl.ContentValidator.ContentType == XmlSchemaContentType.ElementOnly) { 108if (context.ElementDecl.ContentValidator == ContentValidator.Empty) { 132context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 209elementDecl.ContentValidator.InitValidation( context ); 229if(!context.ElementDecl.ContentValidator.CompleteValidation(context)) { 247get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; }
System\Xml\Schema\SchemaCollectionCompiler.cs (7)
692else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) { 812Debug.Assert(baseType.ElementDecl.ContentValidator != null); 814if (baseType.ElementDecl != null && !baseType.ElementDecl.ContentValidator.IsEmptiable) { 1880if (decl.ContentValidator != null) { 1881if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly) { 1894else if (decl.ContentValidator.ContentType != XmlSchemaContentType.Mixed || !decl.ContentValidator.IsEmptiable) {
System\Xml\Schema\SchemaInfo.cs (1)
180if (!ed.ContentValidator.IsOpen || qname.Namespace.Length == 0) {
System\Xml\Schema\SchemaSetCompiler.cs (6)
750else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) { 866if (baseType.ElementDecl != null && !baseType.ElementDecl.ContentValidator.IsEmptiable) { //base is either TextOnly or its ElementOnly/Mixed and not emptiable 2227if (decl.ContentValidator != null) { 2228if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly || (decl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && decl.ContentValidator.IsEmptiable)) {
System\Xml\Schema\XdrValidator.cs (4)
97context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 135context.ElementDecl.ContentValidator.InitValidation(context); 145if(!context.ElementDecl.ContentValidator.CompleteValidation(context)) { 335get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; }
System\Xml\Schema\XmlSchemaComplexType.cs (1)
122return anyTypeLax.ElementDecl.ContentValidator;
System\Xml\Schema\XmlSchemaValidator.cs (15)
421elementDecl.ContentValidator.InitValidation(context); 685XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType; 705ArrayList names = context.ElementDecl.ContentValidator.ExpectedParticles(context, false, schemaSet); 751XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType; 852ArrayList expected = context.ElementDecl.ContentValidator.ExpectedParticles(context, false, schemaSet); 969return context.ElementDecl.ContentValidator.ContentType; 1025XmlSchemaContentType contentType = contextElementDecl.ContentValidator.ContentType; 1055if(!contextElementDecl.ContentValidator.CompleteValidation(context)) { 1129ContentValidator contentValidator = context.ElementDecl.ContentValidator; 1139particle = context.ElementDecl.ContentValidator.ValidateElement(head, context, out errorCode); 1527Debug.Assert(elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && elementDecl.DefaultValueTyped != null); 1891if (currentElementDecl.Datatype == null || currentElementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed) { 2104ContentValidator contentValidator = context.ElementDecl.ContentValidator; 2151names = context.ElementDecl.ContentValidator.ExpectedParticles(context, true, schemaSet); 2154names = context.ElementDecl.ContentValidator.ExpectedElements(context, true);
System\Xml\Schema\XsdValidator.cs (4)
174particle = context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 215context.ElementDecl.ContentValidator.InitValidation(context); 283if(!context.ElementDecl.ContentValidator.CompleteValidation(context)) { 547get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; }