5 writes to ElementDecl
System.Private.Xml (5)
System\Xml\Schema\DtdValidator.cs (2)
245context!.ElementDecl = elementDecl; 254context.ElementDecl = null;
System\Xml\Schema\XdrValidator.cs (1)
155context!.ElementDecl = ThoroughGetElementDecl();
System\Xml\Schema\XmlSchemaValidator.cs (1)
443_context.ElementDecl = elementDecl;
System\Xml\Schema\XsdValidator.cs (1)
242context!.ElementDecl = elementDecl;
116 references to ElementDecl
System.Private.Xml (116)
System\Xml\Schema\BaseValidator.cs (2)
180ContentValidator contentValidator = context.ElementDecl!.ContentValidator!; 212XmlSchemaContentType contentType = context.ElementDecl!.ContentValidator!.ContentType;
System\Xml\Schema\DtdValidator.cs (22)
109context!.ElementDecl != null && 110context.ElementDecl.IsDeclaredInExternal && 111context.ElementDecl.ContentValidator!.ContentType == XmlSchemaContentType.ElementOnly) 124if (context!.ElementDecl!.ContentValidator == ContentValidator.Empty) 153context.ElementDecl!.ContentValidator!.ValidateElement(elementName, context, out errorCode); 163if (context!.ElementDecl != null) 165Reader.SchemaTypeObject = context.ElementDecl.SchemaType; 167if (Reader.IsEmptyElement && context.ElementDecl.DefaultValueTyped != null) 169Reader.TypedValueObject = context.ElementDecl.DefaultValueTyped; 172if (context.ElementDecl.HasRequiredAttribute) 185SchemaAttDef? attnDef = context.ElementDecl!.GetAttDef(new XmlQualifiedName(reader.LocalName, reader.Prefix)); 188if (context.ElementDecl != null && context.ElementDecl.HasRequiredAttribute) 217if (context!.ElementDecl!.HasRequiredAttribute) 221context.ElementDecl.CheckAttributes(_attPresence, Reader.StandAlone); 230if (context.ElementDecl.Datatype != null) 272if (context!.ElementDecl != null) 276if (!context.ElementDecl.ContentValidator!.CompleteValidation(context)) 296get { return context!.ElementDecl != null ? context.ElementDecl.ContentValidator!.PreserveWhitespace : false; } 346XmlSchemaDatatype? dtype = isAttn ? attdef!.Datatype : context!.ElementDecl!.Datatype; 377SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef! : (SchemaDeclBase)context!.ElementDecl!;
System\Xml\Schema\XdrValidator.cs (25)
112context.ElementDecl!.ContentValidator!.ValidateElement(elementName, context, out errorCode); 156if (context.ElementDecl != null) 161context.ElementDecl.ContentValidator!.InitValidation(context); 172if (context!.ElementDecl != null) 176if (!context.ElementDecl.ContentValidator!.CompleteValidation(context)) 240if (context!.ElementDecl != null) 242if (context.ElementDecl.SchemaType != null) 244reader.SchemaTypeObject = context.ElementDecl.SchemaType; 248reader.SchemaTypeObject = context.ElementDecl.Datatype; 250if (reader.IsEmptyElement && !context.IsNill && context.ElementDecl.DefaultValueTyped != null) 252reader.TypedValueObject = context.ElementDecl.DefaultValueTyped; 255if (this.context.ElementDecl.HasRequiredAttribute) 273SchemaAttDef? attnDef = schemaInfo!.GetAttributeXdr(context.ElementDecl, QualifiedName(reader.LocalName, reader.NamespaceURI)); 276if (context.ElementDecl != null && context.ElementDecl.HasRequiredAttribute) 302if (context!.ElementDecl!.HasDefaultAttribute) 304for (int i = 0; i < context.ElementDecl.DefaultAttDefs!.Count; ++i) 306reader.AddDefaultAttribute((SchemaAttDef)context.ElementDecl.DefaultAttDefs[i]); 310if (context.ElementDecl.HasRequiredAttribute) 314context.ElementDecl.CheckAttributes(_attPresence, reader.StandAlone); 323if (context.ElementDecl.Datatype != null) 406get { return context!.ElementDecl != null ? context.ElementDecl.ContentValidator!.PreserveWhitespace : false; } 464XmlSchemaDatatype? dtype = isAttn ? attdef!.Datatype : context!.ElementDecl!.Datatype; 501SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef! : (SchemaDeclBase)context!.ElementDecl!;
System\Xml\Schema\XmlSchemaValidator.cs (33)
514SchemaElementDecl? currentElementDecl = _context.ElementDecl; 713SchemaElementDecl? currentElementDecl = _context.ElementDecl; 751XmlSchemaContentType contentType = _context.ElementDecl!.ContentValidator!.ContentType; 775ArrayList? names = _context.ElementDecl.ContentValidator.ExpectedParticles(_context, false, _schemaSet); 788if (_context.ElementDecl.DefaultValueTyped != null) 830XmlSchemaContentType contentType = _context.ElementDecl!.ContentValidator!.ContentType; 849if (_context.ElementDecl.DefaultValueTyped != null) 896SchemaElementDecl? currentElementDecl = _context.ElementDecl; 956if (_context.ElementDecl != null) 958ArrayList? expected = _context.ElementDecl.ContentValidator!.ExpectedParticles(_context, false, _schemaSet); 972SchemaElementDecl? elementDecl = _context.ElementDecl; 1008SchemaElementDecl? currentElementDecl = _context.ElementDecl; 1104if (_context.ElementDecl == null) 1108return _context.ElementDecl.ContentValidator!.ContentType; 1130return (_processContents == XmlSchemaContentProcessing.Strict || _processContents == XmlSchemaContentProcessing.Lax) && _context.ElementDecl != null && !_context.ValidationSkipped; 1164SchemaElementDecl? contextElementDecl = _context.ElementDecl; 1308ContentValidator contentValidator = _context.ElementDecl!.ContentValidator!; 1309if (contentValidator.ContentType == XmlSchemaContentType.Mixed && _context.ElementDecl.Presence == SchemaDeclBase.Use.Fixed) 1320particle = _context.ElementDecl.ContentValidator!.ValidateElement(head, _context, out errorCode); 1411SchemaElementDecl currentElementDecl = _context.ElementDecl!; 1459SchemaElementDecl currentElementDecl = _context.ElementDecl!; 1746if (_context.ElementDecl!.IsAbstract) 1755if (ProcessIdentityConstraints && _context.ElementDecl!.Constraints != null) 1805SchemaElementDecl elementDecl = _context.ElementDecl!; 1958SchemaDeclBase decl = (_context.ElementDecl as SchemaDeclBase)!; 2103SchemaElementDecl currentDecl = _context.ElementDecl!; 2147SchemaElementDecl currentElementDecl = _context.ElementDecl!; 2208SchemaElementDecl? currentElementDecl = _context.ElementDecl; 2501if (context.ElementDecl != null) 2503ContentValidator contentValidator = context.ElementDecl.ContentValidator!; 2560if (context.ElementDecl != null) 2565names = context.ElementDecl.ContentValidator!.ExpectedParticles(context, true, schemaSet); 2569names = context.ElementDecl.ContentValidator!.ExpectedElements(context, true);
System\Xml\Schema\XsdValidator.cs (34)
198particle = context.ElementDecl!.ContentValidator!.ValidateElement(elementName, context, out errorCode); 245if (context.ElementDecl != null) 249context.ElementDecl.ContentValidator!.InitValidation(context); 329if (context!.ElementDecl != null) 335if (!context.ElementDecl.ContentValidator!.CompleteValidation(context)) 344if (!(stringValue.Length == 0 && context.ElementDecl.DefaultValueTyped != null)) 444if (context!.ElementDecl != null) 446if (context.ElementDecl.IsAbstract) 451reader.SchemaTypeObject = context.ElementDecl.SchemaType; 453if (reader.IsEmptyElement && !context.IsNill && context.ElementDecl.DefaultValueTyped != null) 455reader.TypedValueObject = UnWrapUnion(context.ElementDecl.DefaultValueTyped); 462if (this.context.ElementDecl.HasRequiredAttribute || HasIdentityConstraints) 486SchemaAttDef? attnDef = schemaInfo!.GetAttributeXsd(context.ElementDecl, attQName, ref skipContents); 490if (context.ElementDecl != null && (context.ElementDecl.HasRequiredAttribute || _startIDConstraint != -1)) 509if (context.ElementDecl == null 535if (context!.ElementDecl!.HasDefaultAttribute) 537for (int i = 0; i < context.ElementDecl.DefaultAttDefs!.Count; ++i) 539SchemaAttDef attdef = (SchemaAttDef)context.ElementDecl.DefaultAttDefs[i]; 549if (context.ElementDecl.HasRequiredAttribute) 553context.ElementDecl.CheckAttributes(_attPresence, reader.StandAlone); 561if (context.ElementDecl.Datatype != null) 650get { return context!.ElementDecl != null ? context.ElementDecl.ContentValidator!.PreserveWhitespace : false; } 695XmlSchemaDatatype? dtype = isAttn ? attdef!.Datatype : context!.ElementDecl!.Datatype; 721SchemaDeclBase decl = isAttn ? (SchemaDeclBase)attdef! : (SchemaDeclBase)context!.ElementDecl!; 829if (context!.ElementDecl != null) 831if (context.ElementDecl.Constraints != null) 850context!.Constr = new ConstraintStruct[context.ElementDecl!.Constraints!.Length]; 852for (int i = 0; i < context.ElementDecl.Constraints.Length; ++i) 854context.Constr[id++] = new ConstraintStruct(context.ElementDecl.Constraints[i]); 942if (context!.ElementDecl != null) 944if (context.ElementDecl.Datatype == null) 1056laxis.Ks[laxis.Column] = new TypedObject(reader.TypedValueObject, stringValue, context!.ElementDecl!.Datatype);