16 writes to Datatype
System.Xml (16)
System\Xml\Schema\SchemaAttDef.cs (1)
158
this.
Datatype
= XmlSchemaDatatype.FromXmlTokenizedType(value);
System\Xml\Schema\SchemaCollectionCompiler.cs (5)
492
decl.
Datatype
= simpleType.Datatype;
611
decl.
Datatype
= complexType.Datatype;
1679
decl.
Datatype
= xa.SchemaType.Datatype;
1685
decl.
Datatype
= simpleType.Datatype;
1694
decl.
Datatype
= DatatypeImplementation.AnySimpleType.Datatype;
System\Xml\Schema\SchemaElementDecl.cs (2)
44
Datatype
= dtype;
59
anyTypeElementDecl.
Datatype
= DatatypeImplementation.AnySimpleType.Datatype;
System\Xml\Schema\SchemaSetCompiler.cs (5)
559
decl.
Datatype
= simpleType.Datatype;
668
decl.
Datatype
= complexType.Datatype;
2009
decl.
Datatype
= xa.SchemaType.Datatype;
2015
decl.
Datatype
= simpleType.Datatype;
2024
decl.
Datatype
= DatatypeImplementation.AnySimpleType.Datatype;
System\Xml\Schema\XdrBuilder.cs (3)
708
builder._ElementDef._ElementDecl.
Datatype
= dtype;
964
builder._AttributeDef._AttDef.
Datatype
= builder.CheckDatatype(qname.Name);
1008
builder._AttributeDef._AttDef.
Datatype
= XmlSchemaDatatype.FromXmlTokenizedType(XmlTokenizedType.CDATA);
77 references to Datatype
System.Xml (77)
System\Xml\Core\XmlTextReaderImpl.cs (1)
8275
attr.schemaType = (attrDef.SchemaType == null) ? (object)attrDef.
Datatype
: (object)attrDef.SchemaType;
System\Xml\Dom\DocumentSchemaValidator.cs (1)
408
if (attributeDef.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union) {
System\Xml\Dom\XmlLoader.cs (1)
585
if (attdef.
Datatype
.TokenizedType == XmlTokenizedType.ID) {
System\Xml\Schema\DtdParser.cs (5)
652
if ( attrDef.
Datatype
.TokenizedType != XmlTokenizedType.ENUMERATION ) {
723
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType( attrDef.
Datatype
.TypeCode );
733
if ( ( idAttrDef == null || idAttrDef.
Datatype
.TokenizedType != XmlTokenizedType.ID ) && !ignoreErrors ) {
796
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType( attrDef.
Datatype
.TypeCode );
855
if ( validate && attrDef.
Datatype
.TokenizedType == XmlTokenizedType.ID&& !ignoreErrors ) {
System\Xml\Schema\DtdParserAsync.cs (5)
297
if ( attrDef.
Datatype
.TokenizedType != XmlTokenizedType.ENUMERATION ) {
368
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType( attrDef.
Datatype
.TypeCode );
378
if ( ( idAttrDef == null || idAttrDef.
Datatype
.TokenizedType != XmlTokenizedType.ID ) && !ignoreErrors ) {
441
attrDef.SchemaType = XmlSchemaType.GetBuiltInSimpleType( attrDef.
Datatype
.TypeCode );
500
if ( validate && attrDef.
Datatype
.TokenizedType == XmlTokenizedType.ID&& !ignoreErrors ) {
System\Xml\Schema\DtdValidator.cs (6)
163
if (attnDef.
Datatype
!= null && !reader.IsDefault) { //Since XmlTextReader adds default attributes, do not check again
193
if (context.ElementDecl.
Datatype
!= null) {
288
XmlSchemaDatatype dtype = isAttn ? attdef.
Datatype
: context.ElementDecl.
Datatype
;
442
XmlSchemaDatatype dtype = attdef.
Datatype
;
475
XmlSchemaDatatype dtype = attdef.
Datatype
;
System\Xml\Schema\SchemaAttDef.cs (1)
151
return
Datatype
.TokenizedType;
System\Xml\Schema\SchemaCollectionCompiler.cs (11)
1647
if(decl.
Datatype
!= null) {
1660
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
1667
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
1698
if (decl.
Datatype
!= null) {
1699
decl.
Datatype
.VerifySchemaValid(this.schema.Notations, xa);
1710
if(decl.
Datatype
!= null) {
1711
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
1875
if (decl.
Datatype
!= null) {
1876
decl.
Datatype
.VerifySchemaValid(this.schema.Notations, xe);
1890
if (decl.
Datatype
!= null) {
1891
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xe), true);
System\Xml\Schema\SchemaInfo.cs (1)
208
if (attdef.
Datatype
.TypeCode == XmlTypeCode.Id) { //anyAttribute match whose type is ID
System\Xml\Schema\SchemaSetCompiler.cs (13)
1983
XmlSchemaDatatype datatype = decl.
Datatype
;
2028
if (decl.
Datatype
!= null) {
2029
decl.
Datatype
.VerifySchemaValid(notations, xa);
2064
if(decl.
Datatype
!= null) {
2065
if (decl.
Datatype
.TypeCode == XmlTypeCode.Id) {
2069
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xa), true);
2222
if (decl.
Datatype
!= null) {
2223
decl.
Datatype
.VerifySchemaValid(notations, xe);
2237
if (decl.
Datatype
!= null) {
2238
if (decl.
Datatype
.TypeCode == XmlTypeCode.Id) {
2242
decl.DefaultValueTyped = decl.
Datatype
.ParseValue(decl.DefaultValueRaw, NameTable, new SchemaNamespaceManager(xe), true);
2577
XmlSchemaDatatype baseDatatype = baseDecl.
Datatype
;
2578
XmlSchemaDatatype derivedDatatype = derivedDecl.
Datatype
;
System\Xml\Schema\XdrBuilder.cs (6)
875
if (ed.
Datatype
!= null) {
876
XmlTokenizedType ttype = ed.
Datatype
.TokenizedType;
988
if (builder._AttributeDef._HasDataType && builder._AttributeDef._AttDef.
Datatype
!= null) {
989
XmlTokenizedType ttype = builder._AttributeDef._AttDef.
Datatype
.TokenizedType;
1296
if(builder._AttributeDef._AttDef.
Datatype
!= null) {
1297
XmlTokenizedType ttype = builder._AttributeDef._AttDef.
Datatype
.TokenizedType;
System\Xml\Schema\XdrValidator.cs (7)
204
reader.SchemaTypeObject = context.ElementDecl.
Datatype
;
228
reader.SchemaTypeObject = (attnDef.SchemaType != null) ? (object)attnDef.SchemaType : (object)attnDef.
Datatype
;
229
if (attnDef.
Datatype
!= null) {
263
if (context.ElementDecl.
Datatype
!= null) {
383
XmlSchemaDatatype dtype = isAttn ? attdef.
Datatype
: context.ElementDecl.
Datatype
;
466
XmlSchemaDatatype dtype = attdef.
Datatype
;
System\Xml\Schema\XmlSchemaValidator.cs (11)
583
XmlSchemaDatatype datatype = attributeDef.
Datatype
;
909
XmlSchemaDatatype datatype = attdef.
Datatype
;
921
if (attdef.
Datatype
.Variety == XmlSchemaDatatypeVariety.Union) {
1216
Debug.Assert(currentElementDecl.
Datatype
!= null);
1217
Exception exception = currentElementDecl.
Datatype
.TryParseValue(currentElementDecl.DefaultValueRaw, nameTable, nsResolver, out typedVal);
1234
XmlSchemaDatatype dtype = currentElementDecl.
Datatype
;
1251
XmlSchemaDatatype dtype = currentElementDecl.
Datatype
;
1280
typeName = decl.
Datatype
.TypeCodeString;
1624
XmlSchemaDatatype dtype = attdef.
Datatype
;
1656
XmlSchemaDatatype dtype = decl.
Datatype
;
1891
if (currentElementDecl.
Datatype
== null || currentElementDecl.ContentValidator.ContentType == XmlSchemaContentType.Mixed) {
System\Xml\Schema\XsdValidator.cs (8)
411
if (attnDef.
Datatype
!= null) {
465
if (context.ElementDecl.
Datatype
!= null) {
585
XmlSchemaDatatype dtype = isAttn ? attdef.
Datatype
: context.ElementDecl.
Datatype
;
788
if (context.ElementDecl.
Datatype
== null) {
832
else if ((attdef != null) && (attdef.
Datatype
!= null)){
833
laxis.Ks[laxis.Column] = new TypedObject (obj, sobj, attdef.
Datatype
);
879
laxis.Ks[laxis.Column] = new TypedObject(reader.TypedValueObject,stringValue,context.ElementDecl.
Datatype
);