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