5 writes to ElementDecl
System.Xml (5)
System\Xml\Schema\DtdValidator.cs (2)
205context.ElementDecl = elementDecl; 213context.ElementDecl = null;
System\Xml\Schema\XdrValidator.cs (1)
130context.ElementDecl = ThoroughGetElementDecl();
System\Xml\Schema\XmlSchemaValidator.cs (1)
413context.ElementDecl = elementDecl;
System\Xml\Schema\XsdValidator.cs (1)
209context.ElementDecl = elementDecl;
116 references to ElementDecl
System.Xml (116)
System\Xml\Schema\BaseValidator.cs (2)
147ContentValidator contentValidator = context.ElementDecl.ContentValidator; 170XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType;
System\Xml\Schema\DtdValidator.cs (22)
96context.ElementDecl != null && 97context.ElementDecl.IsDeclaredInExternal && 98context.ElementDecl.ContentValidator.ContentType == XmlSchemaContentType.ElementOnly) { 108if (context.ElementDecl.ContentValidator == ContentValidator.Empty) { 132context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 140if (context.ElementDecl != null) { 141Reader.SchemaTypeObject = context.ElementDecl.SchemaType; 143if (Reader.IsEmptyElement && context.ElementDecl.DefaultValueTyped != null) { 144Reader.TypedValueObject = context.ElementDecl.DefaultValueTyped; 147if ( context.ElementDecl.HasRequiredAttribute ) { 156SchemaAttDef attnDef = context.ElementDecl.GetAttDef( new XmlQualifiedName( reader.LocalName, reader.Prefix) ); 158if (context.ElementDecl != null && context.ElementDecl.HasRequiredAttribute) { 183if (context.ElementDecl.HasRequiredAttribute) { 185context.ElementDecl.CheckAttributes(attPresence, Reader.StandAlone); 193if (context.ElementDecl.Datatype != null) { 227if (context.ElementDecl != null) { 229if(!context.ElementDecl.ContentValidator.CompleteValidation(context)) { 247get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; } 288XmlSchemaDatatype dtype = isAttn ? attdef.Datatype : context.ElementDecl.Datatype; 313SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef : (SchemaDeclBase)context.ElementDecl;
System\Xml\Schema\XdrValidator.cs (25)
97context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 131if (context.ElementDecl != null) { 135context.ElementDecl.ContentValidator.InitValidation(context); 143if (context.ElementDecl != null) { 145if(!context.ElementDecl.ContentValidator.CompleteValidation(context)) { 199if (context.ElementDecl != null) { 200if (context.ElementDecl.SchemaType != null) { 201reader.SchemaTypeObject = context.ElementDecl.SchemaType; 204reader.SchemaTypeObject = context.ElementDecl.Datatype; 206if (reader.IsEmptyElement && !context.IsNill && context.ElementDecl.DefaultValueTyped != null) { 207reader.TypedValueObject = context.ElementDecl.DefaultValueTyped; 210if (this.context.ElementDecl.HasRequiredAttribute) { 223SchemaAttDef attnDef = schemaInfo.GetAttributeXdr(context.ElementDecl, QualifiedName(reader.LocalName, reader.NamespaceURI)); 225if (context.ElementDecl != null && context.ElementDecl.HasRequiredAttribute) { 248if (context.ElementDecl.HasDefaultAttribute) { 249for (int i = 0; i < context.ElementDecl.DefaultAttDefs.Count; ++i) { 250reader.AddDefaultAttribute((SchemaAttDef)context.ElementDecl.DefaultAttDefs[i]); 253if (context.ElementDecl.HasRequiredAttribute) { 255context.ElementDecl.CheckAttributes(attPresence, reader.StandAlone); 263if (context.ElementDecl.Datatype != null) { 335get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; } 383XmlSchemaDatatype dtype = isAttn ? attdef.Datatype : context.ElementDecl.Datatype; 412SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef : (SchemaDeclBase)context.ElementDecl;
System\Xml\Schema\XmlSchemaValidator.cs (33)
481SchemaElementDecl currentElementDecl = context.ElementDecl; 652SchemaElementDecl currentElementDecl = context.ElementDecl; 685XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType; 705ArrayList names = context.ElementDecl.ContentValidator.ExpectedParticles(context, false, schemaSet); 716if (context.ElementDecl.DefaultValueTyped != null) { 751XmlSchemaContentType contentType = context.ElementDecl.ContentValidator.ContentType; 767if (context.ElementDecl.DefaultValueTyped != null) { 805SchemaElementDecl currentElementDecl = context.ElementDecl; 851if (context.ElementDecl != null) { 852ArrayList expected = context.ElementDecl.ContentValidator.ExpectedParticles(context, false, schemaSet); 862SchemaElementDecl elementDecl = context.ElementDecl; 889SchemaElementDecl currentElementDecl = context.ElementDecl; 966if (context.ElementDecl == null) { 969return context.ElementDecl.ContentValidator.ContentType; 986return (processContents == XmlSchemaContentProcessing.Strict || processContents == XmlSchemaContentProcessing.Lax) && context.ElementDecl != null && !context.ValidationSkipped; 1012SchemaElementDecl contextElementDecl = context.ElementDecl; 1129ContentValidator contentValidator = context.ElementDecl.ContentValidator; 1130if (contentValidator.ContentType == XmlSchemaContentType.Mixed && context.ElementDecl.Presence == SchemaDeclBase.Use.Fixed) { //Mixed with default or fixed 1139particle = context.ElementDecl.ContentValidator.ValidateElement(head, context, out errorCode); 1211SchemaElementDecl currentElementDecl = context.ElementDecl; 1247SchemaElementDecl currentElementDecl = context.ElementDecl; 1477if (context.ElementDecl.IsAbstract) { 1484if (ProcessIdentityConstraints && context.ElementDecl.Constraints != null) { 1526SchemaElementDecl elementDecl = context.ElementDecl; 1654SchemaDeclBase decl = context.ElementDecl as SchemaDeclBase; 1775SchemaElementDecl currentDecl = context.ElementDecl; 1808SchemaElementDecl currentElementDecl = context.ElementDecl; 1859SchemaElementDecl currentElementDecl = context.ElementDecl; 2103if (context.ElementDecl != null) { 2104ContentValidator contentValidator = context.ElementDecl.ContentValidator; 2149if (context.ElementDecl != null) { 2151names = context.ElementDecl.ContentValidator.ExpectedParticles(context, true, schemaSet); 2154names = context.ElementDecl.ContentValidator.ExpectedElements(context, true);
System\Xml\Schema\XsdValidator.cs (34)
174particle = context.ElementDecl.ContentValidator.ValidateElement(elementName, context, out errorCode); 212if (context.ElementDecl != null) { 215context.ElementDecl.ContentValidator.InitValidation(context); 280if (context.ElementDecl != null) { 283if(!context.ElementDecl.ContentValidator.CompleteValidation(context)) { 290if(!(stringValue.Length == 0 && context.ElementDecl.DefaultValueTyped != null)) { 371if (context.ElementDecl != null) { 372if (context.ElementDecl.IsAbstract) { 376reader.SchemaTypeObject = context.ElementDecl.SchemaType; 378if (reader.IsEmptyElement && !context.IsNill && context.ElementDecl.DefaultValueTyped != null) { 379reader.TypedValueObject = UnWrapUnion(context.ElementDecl.DefaultValueTyped); 385if (this.context.ElementDecl.HasRequiredAttribute || HasIdentityConstraints) { 403SchemaAttDef attnDef = schemaInfo.GetAttributeXsd(context.ElementDecl, attQName, ref skipContents); 406if (context.ElementDecl != null && (context.ElementDecl.HasRequiredAttribute || this.startIDConstraint != -1)) { 422if (context.ElementDecl == null 444if (context.ElementDecl.HasDefaultAttribute) { 445for (int i = 0; i < context.ElementDecl.DefaultAttDefs.Count; ++i) { 446SchemaAttDef attdef = (SchemaAttDef)context.ElementDecl.DefaultAttDefs[i]; 455if (context.ElementDecl.HasRequiredAttribute) { 457context.ElementDecl.CheckAttributes(attPresence, reader.StandAlone); 465if (context.ElementDecl.Datatype != null) { 547get { return context.ElementDecl != null ? context.ElementDecl.ContentValidator.PreserveWhitespace : false; } 585XmlSchemaDatatype dtype = isAttn ? attdef.Datatype : context.ElementDecl.Datatype; 606SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef : (SchemaDeclBase)context.ElementDecl; 696if (context.ElementDecl != null) { 697if (context.ElementDecl.Constraints != null) { 712context.Constr = new ConstraintStruct[context.ElementDecl.Constraints.Length]; 714for (int i = 0; i < context.ElementDecl.Constraints.Length; ++i) { 715context.Constr[id++] = new ConstraintStruct (context.ElementDecl.Constraints[i]); 787if (context.ElementDecl != null) { // nextElement can be null when xml/xsd are not valid 788if (context.ElementDecl.Datatype == null) { 879laxis.Ks[laxis.Column] = new TypedObject(reader.TypedValueObject,stringValue,context.ElementDecl.Datatype);