30 references to TextOnly
System.Xml (30)
System\Xml\Core\XsdValidatingReader.cs (6)
217
if (nodeType == XmlNodeType.Whitespace && (validator.CurrentContentType == XmlSchemaContentType.
TextOnly
|| validator.CurrentContentType == XmlSchemaContentType.Mixed)) {
356
if (xmlSchemaInfo.ContentType == XmlSchemaContentType.
TextOnly
) {
362
if (attributePSVI != null && AttributeSchemaInfo.ContentType == XmlSchemaContentType.
TextOnly
) {
1884
if (validator.CurrentContentType == XmlSchemaContentType.
TextOnly
) { //if current element is of simple type
1926
if (xmlSchemaInfo.ContentType == XmlSchemaContentType.
TextOnly
) {
1944
if (xmlSchemaInfo.ContentType == XmlSchemaContentType.
TextOnly
) {
System\Xml\Core\XsdValidatingReaderAsync.cs (3)
600
if (validator.CurrentContentType == XmlSchemaContentType.
TextOnly
) { //if current element is of simple type
648
if (xmlSchemaInfo.ContentType == XmlSchemaContentType.
TextOnly
) {
667
if (xmlSchemaInfo.ContentType == XmlSchemaContentType.
TextOnly
) {
System\Xml\Schema\ContentValidator.cs (4)
875
public static readonly ContentValidator TextOnly = new ContentValidator(XmlSchemaContentType.
TextOnly
, false, false);
895
get { return contentType == XmlSchemaContentType.
TextOnly
|| contentType == XmlSchemaContentType.Mixed; }
904
if (contentType == XmlSchemaContentType.
TextOnly
|| contentType == XmlSchemaContentType.Empty)
917
if (contentType == XmlSchemaContentType.
TextOnly
|| contentType == XmlSchemaContentType.Empty) { //Cannot have elements in TextOnly or Empty content
System\Xml\Schema\SchemaCollectionCompiler.cs (7)
568
complexType.SetContentType(XmlSchemaContentType.
TextOnly
);
656
if (baseType.ContentType != XmlSchemaContentType.
TextOnly
) {
678
if (baseType.ContentType == XmlSchemaContentType.
TextOnly
) {
744
if (baseType.ContentType == XmlSchemaContentType.
TextOnly
) {
797
if (baseType.ContentType == XmlSchemaContentType.
TextOnly
) {
1881
if (decl.ContentValidator.ContentType == XmlSchemaContentType.
TextOnly
) {
1929
else if (complexType.ContentType == XmlSchemaContentType.
TextOnly
) {
System\Xml\Schema\SchemaSetCompiler.cs (6)
636
complexType.SetContentType(XmlSchemaContentType.
TextOnly
);
714
if (baseType.ContentType != XmlSchemaContentType.
TextOnly
) {
736
if (baseType.ContentType == XmlSchemaContentType.
TextOnly
) {
828
if (contentType == XmlSchemaContentType.
TextOnly
) {
2228
if (decl.ContentValidator.ContentType == XmlSchemaContentType.
TextOnly
|| (decl.ContentValidator.ContentType == XmlSchemaContentType.Mixed && decl.ContentValidator.IsEmptiable)) {
2284
else if (complexType.ContentType == XmlSchemaContentType.
TextOnly
) {
System\Xml\Schema\XmlSchemaSimpleType.cs (1)
26
Debug.Assert(SchemaContentType == XmlSchemaContentType.
TextOnly
);
System\Xml\Schema\XmlSchemaValidator.cs (3)
691
case XmlSchemaContentType.
TextOnly
:
757
case XmlSchemaContentType.
TextOnly
:
1027
case XmlSchemaContentType.
TextOnly
: