30 references to TextOnly
System.Xml (30)
System\Xml\Core\XsdValidatingReader.cs (6)
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\ContentValidator.cs (4)
875public static readonly ContentValidator TextOnly = new ContentValidator(XmlSchemaContentType.TextOnly, false, false); 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
System\Xml\Schema\SchemaCollectionCompiler.cs (7)
568complexType.SetContentType(XmlSchemaContentType.TextOnly); 656if (baseType.ContentType != XmlSchemaContentType.TextOnly) { 678if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 744if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 797if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 1881if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly) { 1929else if (complexType.ContentType == XmlSchemaContentType.TextOnly) {
System\Xml\Schema\SchemaSetCompiler.cs (6)
636complexType.SetContentType(XmlSchemaContentType.TextOnly); 714if (baseType.ContentType != XmlSchemaContentType.TextOnly) { 736if (baseType.ContentType == XmlSchemaContentType.TextOnly) { 828if (contentType == XmlSchemaContentType.TextOnly) { 2228if (decl.ContentValidator.ContentType == XmlSchemaContentType.TextOnly || (decl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && decl.ContentValidator.IsEmptiable)) { 2284else if (complexType.ContentType == XmlSchemaContentType.TextOnly) {
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
26Debug.Assert(SchemaContentType == XmlSchemaContentType.TextOnly);
System\Xml\Schema\XmlSchemaValidator.cs (3)
691case XmlSchemaContentType.TextOnly: 757case XmlSchemaContentType.TextOnly: 1027case XmlSchemaContentType.TextOnly: