120 references to XmlSchemaContentType
System.Xml (120)
System\Xml\Core\XsdValidatingReader.cs (7)
217if (nodeType == XmlNodeType.Whitespace && (validator.CurrentContentType == XmlSchemaContentType.TextOnly || validator.CurrentContentType == XmlSchemaContentType.Mixed)) { 356if (xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) { 362if (attributePSVI != null && AttributeSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) { 1884if (validator.CurrentContentType == XmlSchemaContentType.TextOnly) { //if current element is of simple type 1926if (xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) { 1944if (xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) {
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
600if (validator.CurrentContentType == XmlSchemaContentType.TextOnly) { //if current element is of simple type 648if (xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) { 667if (xmlSchemaInfo.ContentType == XmlSchemaContentType.TextOnly) {
System\Xml\Schema\BaseValidator.cs (5)
148XmlSchemaContentType contentType = contentValidator.ContentType; 149if (contentType == XmlSchemaContentType.ElementOnly) { 159else if (contentType == XmlSchemaContentType.Empty) { 170XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType; 174if (contentType == XmlSchemaContentType.Empty) {
System\Xml\Schema\ContentValidator.cs (23)
870XmlSchemaContentType contentType; 874public static readonly ContentValidator Empty = new ContentValidator(XmlSchemaContentType.Empty); 875public static readonly ContentValidator TextOnly = new ContentValidator(XmlSchemaContentType.TextOnly, false, false); 876public static readonly ContentValidator Mixed = new ContentValidator(XmlSchemaContentType.Mixed); 877public static readonly ContentValidator Any = new ContentValidator(XmlSchemaContentType.Mixed, true, true); 879public ContentValidator(XmlSchemaContentType contentType) { 884protected ContentValidator(XmlSchemaContentType contentType, bool isOpen, bool isEmptiable) { 890public XmlSchemaContentType ContentType { 895get { return contentType == XmlSchemaContentType.TextOnly || contentType == XmlSchemaContentType.Mixed; } 904if (contentType == XmlSchemaContentType.TextOnly || contentType == XmlSchemaContentType.Empty) 917if (contentType == XmlSchemaContentType.TextOnly || contentType == XmlSchemaContentType.Empty) { //Cannot have elements in TextOnly or Empty content 971public ParticleContentValidator(XmlSchemaContentType contentType) : this(contentType, true) { 974public ParticleContentValidator(XmlSchemaContentType contentType, bool enableUpaCheck) : base(contentType) { 1126Debug.Assert(ContentType == XmlSchemaContentType.ElementOnly || ContentType == XmlSchemaContentType.Mixed); 1128if (ContentType == XmlSchemaContentType.Mixed) { 1429XmlSchemaContentType contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable) { 1527XmlSchemaContentType contentType, bool isOpen, bool isEmptiable) : base(contentType, isOpen, isEmptiable) { 1654BitSet firstpos, BitSet[] followpos, SymbolsDictionary symbols, Positions positions, int endMarkerPos, XmlSchemaContentType contentType, bool isEmptiable, BitSet positionsWithRangeTerminals, int minmaxNodesCount) : base(contentType, false, isEmptiable) { 1924public AllElementsContentValidator(XmlSchemaContentType contentType, int size, bool isEmptiable) : base(contentType, false, isEmptiable) {
System\Xml\Schema\DtdParser.cs (3)
751elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Empty && 941ParticleContentValidator pcv = new ParticleContentValidator( XmlSchemaContentType.Mixed ); 953pcv = new ParticleContentValidator( XmlSchemaContentType.ElementOnly );
System\Xml\Schema\DtdParserAsync.cs (3)
396elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Empty && 586ParticleContentValidator pcv = new ParticleContentValidator( XmlSchemaContentType.Mixed ); 598pcv = new ParticleContentValidator( XmlSchemaContentType.ElementOnly );
System\Xml\Schema\DtdValidator.cs (1)
98context.ElementDecl.ContentValidator.ContentType == XmlSchemaContentType.ElementOnly) {
System\Xml\Schema\SchemaCollectionCompiler.cs (18)
568complexType.SetContentType(XmlSchemaContentType.TextOnly); 656if (baseType.ContentType != XmlSchemaContentType.TextOnly) { 678if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 692else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) { 744if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 767XmlSchemaContentType contentType = GetSchemaContentType(complexType, complexContent, extendedParticle); 768if (contentType == XmlSchemaContentType.Empty) { //Derived content type is empty, Get ContentType from base 797if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 810if (complexType.ContentType == XmlSchemaContentType.Empty) { 1349private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) { 1352return XmlSchemaContentType.Mixed; 1355return XmlSchemaContentType.ElementOnly; 1358return XmlSchemaContentType.Empty; 1881if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly) { 1894else if (decl.ContentValidator.ContentType != XmlSchemaContentType.Mixed || !decl.ContentValidator.IsEmptiable) { 1926if (complexType.ContentType == XmlSchemaContentType.Empty) { 1929else if (complexType.ContentType == XmlSchemaContentType.TextOnly) { 1934if (complexType.ContentType == XmlSchemaContentType.ElementOnly) {
System\Xml\Schema\SchemaSetCompiler.cs (21)
636complexType.SetContentType(XmlSchemaContentType.TextOnly); 714if (baseType.ContentType != XmlSchemaContentType.TextOnly) { 736if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 750else if (baseType.ContentType == XmlSchemaContentType.Mixed && baseType.ElementDecl.ContentValidator.IsEmptiable) { 822XmlSchemaContentType contentType = GetSchemaContentType(complexType, complexContent, extendedParticle); 823if (contentType == XmlSchemaContentType.Empty) { //Derived content type is empty, Get ContentType from base 828if (contentType == XmlSchemaContentType.TextOnly) { 834if (baseType.ContentType != XmlSchemaContentType.Empty && complexType.ContentType != baseType.ContentType) { //If base is empty, do not check 862XmlSchemaContentType derivedContentType = GetSchemaContentType(complexType, complexContent, complexType.ContentTypeParticle); 865case XmlSchemaContentType.Empty: 871case XmlSchemaContentType.Mixed: 872if (baseType.ContentType != XmlSchemaContentType.Mixed) { 1623private XmlSchemaContentType GetSchemaContentType(XmlSchemaComplexType complexType, XmlSchemaComplexContent complexContent, XmlSchemaParticle particle) { 1626return XmlSchemaContentType.Mixed; 1629return XmlSchemaContentType.ElementOnly; 1632return XmlSchemaContentType.Empty; 2228if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly || (decl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && decl.ContentValidator.IsEmptiable)) { 2281if (complexType.ContentType == XmlSchemaContentType.Empty) { 2284else if (complexType.ContentType == XmlSchemaContentType.TextOnly) { 2289if (complexType.ContentType == XmlSchemaContentType.ElementOnly) {
System\Xml\Schema\XdrBuilder.cs (2)
653builder._contentValidator = new ParticleContentValidator(XmlSchemaContentType.Mixed); 779builder._contentValidator = new ParticleContentValidator(XmlSchemaContentType.ElementOnly);
System\Xml\Schema\XmlSchemaComplexType.cs (4)
52untypedAnyType.SetContentType(XmlSchemaContentType.Mixed); 74localAnyType.SetContentType(XmlSchemaContentType.Mixed); 80ParticleContentValidator contentValidator = new ParticleContentValidator(XmlSchemaContentType.Mixed); 229public XmlSchemaContentType ContentType {
System\Xml\Schema\XmlSchemaInfo.cs (4)
22XmlSchemaContentType contentType; 78contentType = XmlSchemaContentType.Empty; 107public XmlSchemaContentType ContentType { 148contentType = XmlSchemaContentType.Empty;
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
26Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly);
System\Xml\Schema\XmlSchemaType.cs (3)
31XmlSchemaContentType contentType; 207internal XmlSchemaContentType SchemaContentType { 248internal void SetContentType(XmlSchemaContentType value) {
System\Xml\Schema\XmlSchemaValidator.cs (22)
685XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType; 687case XmlSchemaContentType.Empty: 691case XmlSchemaContentType.TextOnly: 700case XmlSchemaContentType.ElementOnly: 715case XmlSchemaContentType.Mixed: 751XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType; 753case XmlSchemaContentType.Empty: 757case XmlSchemaContentType.TextOnly: 766case XmlSchemaContentType.Mixed: 964internal XmlSchemaContentType CurrentContentType { 967return XmlSchemaContentType.Empty; 1025XmlSchemaContentType contentType = contextElementDecl.ContentValidator.ContentType; 1027case XmlSchemaContentType.TextOnly: 1037case XmlSchemaContentType.Mixed: 1046case XmlSchemaContentType.ElementOnly: 1130if (contentValidator.ContentType == XmlSchemaContentType.Mixed && context.ElementDecl.Presence == SchemaDeclBase.Use.Fixed) { //Mixed with default or fixed 1527Debug.Assert(elementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && elementDecl.DefaultValueTyped != null); 1891if (currentElementDecl.Datatype == null || currentElementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed) { 2105XmlSchemaContentType contentType = contentValidator.ContentType; 2106if (contentType == XmlSchemaContentType.ElementOnly || (contentType == XmlSchemaContentType.Mixed && contentValidator != ContentValidator.Mixed && contentValidator != ContentValidator.Any)) { 2135if (contentType == XmlSchemaContentType.Empty) {