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