3 writes to
System.Xml (3)
System\Xml\Schema\XmlSchemaComplexType.cs (3)
445newAttributes[i] = newAttGroupRef; 450newAttributes[i] = att.Clone(); 464newParticles[i] = CloneParticle(p, parentSchema);
255 references to
System.Runtime.Serialization (4)
System\Runtime\Serialization\SchemaImporter.cs (4)
604XmlSchemaElement element = items[i] as XmlSchemaElement; 692XmlSchemaElement element = rootSequence.Items[memberIndex] as XmlSchemaElement; 895o = attributes[i]; 1389XmlSchemaObject o = attributes[i];
System.ServiceModel (2)
System\ServiceModel\Description\MessageContractImporter.cs (2)
1615XmlSchemaElement element = rootSequence.Items[i] as XmlSchemaElement; 1668XmlSchemaElement localElement = rootSequence.Items[i] as XmlSchemaElement;
System.Web.Services (20)
System\Web\Services\Description\ServiceDescriptionSerializer.cs (20)
1841global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 1865global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 1933global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 2128global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 2273global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 2329Write47_XmlSchemaXPath(@"field", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaXPath)a[ia]), false, false); 2402Write47_XmlSchemaXPath(@"field", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaXPath)a[ia]), false, false); 2443Write47_XmlSchemaXPath(@"field", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaXPath)a[ia]), false, false); 2565global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3068Write34_XmlSchemaSimpleType(@"simpleType", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaSimpleType)a[ia]), false, false); 3178global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3393Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaElement)a[ia]), false, false); 3433global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3557global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3629global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3726global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3777global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3830global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 3916global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia]; 4031global::System.Xml.Schema.XmlSchemaObject ai = (global::System.Xml.Schema.XmlSchemaObject)a[ia];
System.Xml (229)
System\Xml\Schema\CompiledidEntityConstraint.cs (2)
61this.fields[idxField] = new Asttree(((XmlSchemaXPath)fields[idxField]).XPath, true, nsmgr); 64e.SetSource(constraint.Fields[idxField]);
System\Xml\Schema\FacetChecker.cs (1)
741XmlSchemaFacet facet = (XmlSchemaFacet)facets[i];
System\Xml\Schema\Inference\Infer.cs (14)
471XmlSchemaImport import = parentSchema.Includes[i] as XmlSchemaImport; 574XmlSchemaImport import = parentSchema.Includes[i] as XmlSchemaImport; 989if (((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem].GetType() != typeof (XmlSchemaElement)) 991XmlSchemaElement subElement = (XmlSchemaElement) ((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem]; 1072XmlSchemaElement el = xsch.Items[i] as XmlSchemaElement; 1099XmlSchemaParticle particle = xss.Items[iSeqItem] as XmlSchemaParticle; 1129particle = xss.Items[iSeqItem] as XmlSchemaParticle; 1140((XmlSchemaElement) minOccursCandidates[i]).MinOccurs = decimal.Zero; 1151((XmlSchemaElement) minOccursCandidates[i]).MinOccurs = decimal.Zero; 1190xsc.Items.Add(CreateNewElementforChoice((XmlSchemaElement) xss.Items[i])); 1298ct.Attributes.Add(scExtension.Attributes[i]); 1358XmlSchemaElement xse = elements[i] as XmlSchemaElement; 1390XmlSchemaElement xse = elements[i] as XmlSchemaElement; 1418XmlSchemaAttribute attr = attributes[i] as XmlSchemaAttribute;
System\Xml\Schema\Preprocessor.cs (55)
227XmlSchemaExternal ext = (XmlSchemaExternal)schema.Includes[i]; 246XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 428XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 493XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 578external = (XmlSchemaExternal) schema.Includes[i]; 624if (!(redefine.Items[j] is XmlSchemaAnnotation)) { 638SetParent(schemaItems[i], schema); 639XmlSchemaAttribute attribute = schemaItems[i] as XmlSchemaAttribute; 644else if (schemaItems[i] is XmlSchemaAttributeGroup) { 645XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)schemaItems[i]; 649else if (schemaItems[i] is XmlSchemaComplexType) { 650XmlSchemaComplexType complexType = (XmlSchemaComplexType)schemaItems[i]; 654else if (schemaItems[i] is XmlSchemaSimpleType) { 655XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)schemaItems[i]; 659else if (schemaItems[i] is XmlSchemaElement) { 660XmlSchemaElement element = (XmlSchemaElement)schemaItems[i]; 664else if (schemaItems[i] is XmlSchemaGroup) { 665XmlSchemaGroup group = (XmlSchemaGroup)schemaItems[i]; 669else if (schemaItems[i] is XmlSchemaNotation) { 670XmlSchemaNotation notation = (XmlSchemaNotation)schemaItems[i]; 674else if (schemaItems[i] is XmlSchemaAnnotation) { 675PreprocessAnnotation(schemaItems[i] as XmlSchemaAnnotation); 678SendValidationEvent(Res.Sch_InvalidCollection,(XmlSchemaObject)schemaItems[i]); 679removeItemsList.Add(schemaItems[i]); 735SetParent(items[i], redefine); 736XmlSchemaGroup group = items[i] as XmlSchemaGroup; 757else if (items[i] is XmlSchemaAttributeGroup) { 758XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)items[i]; 778else if (items[i] is XmlSchemaComplexType) { 779XmlSchemaComplexType complexType = (XmlSchemaComplexType)items[i]; 802else if (items[i] is XmlSchemaSimpleType) { 803XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)items[i]; 835XmlSchemaExternal external = (XmlSchemaExternal)schema.Includes[i]; 892XmlSchemaGroupRef groupRef = items[i] as XmlSchemaGroupRef; 902else if (items[i] is XmlSchemaGroupBase) { 903count += CountGroupSelfReference(((XmlSchemaGroupBase)items[i]).Items, name, redefined); 927XmlSchemaAttributeGroupRef attrGroupRef = attributeGroup.Attributes[i] as XmlSchemaAttributeGroupRef; 1195XmlSchemaIdentityConstraint identityConstraint = (XmlSchemaIdentityConstraint)element.Constraints[i]; 1244SetParent(constraint.Fields[i], constraint); 1245ValidateIdAttribute(constraint.Fields[i]); 1292SetParent(restriction.Facets[i], restriction); 1350XmlSchemaSimpleType type = (XmlSchemaSimpleType)union1.BaseTypes[i]; 1584XmlSchemaElement element = (XmlSchemaElement)items[i]; 1601SetParent(items[i], particle); 1602XmlSchemaElement element = items[i] as XmlSchemaElement; 1607PreprocessParticle((XmlSchemaParticle)items[i]); 1614SetParent(items[i], particle); 1615XmlSchemaElement element = items[i] as XmlSchemaElement; 1620PreprocessParticle((XmlSchemaParticle)items[i]); 1648SetParent(attributes[i], parent); 1649XmlSchemaAttribute attr = attributes[i] as XmlSchemaAttribute; 1654XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i]; 1661PreprocessAnnotation(attributes[i]); //set parent of annotation child of attributeGroupRef 1662ValidateIdAttribute(attributes[i]); 1784annotation.Items[i].Parent = annotation; //Can be documentation or appInfo
System\Xml\Schema\SchemaCollectionCompiler.cs (38)
80XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 91object item = rdef.Items[j]; 122object item = schema.Items[i]; 133else if ((attrgroup = schema.Items[i] as XmlSchemaAttributeGroup) != null) { 136else if ((complextype = schema.Items[i] as XmlSchemaComplexType) != null) { 139else if ((simpletype = schema.Items[i] as XmlSchemaSimpleType) != null) { 142else if ((element = schema.Items[i] as XmlSchemaElement) != null) { 145else if ((group = schema.Items[i] as XmlSchemaGroup) != null) { 309((XmlSchemaIdentityConstraint)element.Constraints[i]).CompiledConstraint = null; 316XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 335CleanupParticle((XmlSchemaParticle)particles[i]); 362substitutionGroup.Choice.Items.Add(g.Choice.Items[j]); 530XmlSchemaSimpleType st = (XmlSchemaSimpleType)mainBaseTypes[i]; 938groupRefBase.Items.Add((XmlSchemaParticle)groupBase.Items[i]); 953XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 989XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false, substitution); 994newChoice.Items.Add(particleChoice.Items[j]); 1024XmlSchemaParticle p1 = CannonicalizeParticle(( XmlSchemaParticle)sequence.Items[i], false, substitution); 1029newSequence.Items.Add(particleSequence.Items[j]); 1147if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) { 1159XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1187XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1188if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) { 1207int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1221if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) { 1235if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1244XmlSchemaParticle p = (XmlSchemaParticle)sequence.Items[i]; 1271if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1298CalculateEffectiveTotalRange((XmlSchemaParticle) choice.Items[i], out min, out max); 1325CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 1373XmlSchemaAttribute attribute = attributeGroup.Attributes[i] as XmlSchemaAttribute; 1386XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributeGroup.Attributes[i]; 1419XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 1440XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i]; 1904XmlSchemaIdentityConstraint constraint = (XmlSchemaIdentityConstraint)constraints[i]; 1946XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2077XmlSchemaParticle p = (XmlSchemaParticle)particles[i]; 2129CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]);
System\Xml\Schema\SchemaCollectionpreProcessor.cs (57)
67XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 83XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 126XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 157XmlSchemaExternal subInc = (XmlSchemaExternal)include.Schema.Includes[j]; 237import = schema.Includes[i] as XmlSchemaImport; 307XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 398XmlSchemaExternal include = (XmlSchemaExternal)schema.Includes[i]; 406if (!(redefine.Items[j] is XmlSchemaAnnotation)) { 440SetParent(schema.Items[i], schema); 441XmlSchemaAttribute attribute = schema.Items[i] as XmlSchemaAttribute; 446else if (schema.Items[i] is XmlSchemaAttributeGroup) { 447XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)schema.Items[i]; 451else if (schema.Items[i] is XmlSchemaComplexType) { 452XmlSchemaComplexType complexType = (XmlSchemaComplexType)schema.Items[i]; 456else if (schema.Items[i] is XmlSchemaSimpleType) { 457XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)schema.Items[i]; 461else if (schema.Items[i] is XmlSchemaElement) { 462XmlSchemaElement element = (XmlSchemaElement)schema.Items[i]; 466else if (schema.Items[i] is XmlSchemaGroup) { 467XmlSchemaGroup group = (XmlSchemaGroup)schema.Items[i]; 471else if (schema.Items[i] is XmlSchemaNotation) { 472XmlSchemaNotation notation = (XmlSchemaNotation)schema.Items[i]; 476else if(!(schema.Items[i] is XmlSchemaAnnotation)) { 477SendValidationEvent(Res.Sch_InvalidCollection, schema.Items[i]); 478removeItemsList.Add(schema.Items[i]); 490SetParent(redefine.Items[i], redefine); 491XmlSchemaGroup group = redefine.Items[i] as XmlSchemaGroup; 508else if (redefine.Items[i] is XmlSchemaAttributeGroup) { 509XmlSchemaAttributeGroup attributeGroup = (XmlSchemaAttributeGroup)redefine.Items[i]; 525else if (redefine.Items[i] is XmlSchemaComplexType) { 526XmlSchemaComplexType complexType = (XmlSchemaComplexType)redefine.Items[i]; 548else if (redefine.Items[i] is XmlSchemaSimpleType) { 549XmlSchemaSimpleType simpleType = (XmlSchemaSimpleType)redefine.Items[i]; 587XmlSchemaGroupRef groupRef = items[i] as XmlSchemaGroupRef; 596else if (items[i] is XmlSchemaGroupBase) { 597count += CountGroupSelfReference(((XmlSchemaGroupBase) items[i]).Items, name); 620XmlSchemaAttributeGroupRef groupRef = attributeGroup.Attributes[i] as XmlSchemaAttributeGroupRef; 884SetParent(element.Constraints[i], element); 885PreprocessIdentityConstraint((XmlSchemaIdentityConstraint)element.Constraints[i]); 932SetParent(constraint.Fields[i], constraint); 933ValidateIdAttribute(constraint.Fields[i]); 980SetParent(restriction.Facets[i], restriction); 1037SetParent(union1.BaseTypes[i], union1); 1038PreprocessSimpleType((XmlSchemaSimpleType)union1.BaseTypes[i], true); 1271XmlSchemaElement element = (XmlSchemaElement)schemaAll.Items[i]; 1289SetParent(choices[i], particle); 1290XmlSchemaElement element = choices[i] as XmlSchemaElement; 1295PreprocessParticle((XmlSchemaParticle)choices[i]); 1302SetParent(sequences[i], particle); 1303XmlSchemaElement element = sequences[i] as XmlSchemaElement; 1308PreprocessParticle((XmlSchemaParticle)sequences[i]); 1336SetParent(attributes[i], parent); 1337XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 1342XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributes[i]; 1349PreprocessAnnotation(attributes[i]); //set parent of annotation child of attributeGroupRef 1350ValidateIdAttribute(attributes[i]); 1424annotated.Annotation.Items[i].Parent = annotated.Annotation; //Can be documentation or appInfo
System\Xml\Schema\SchemaSetCompiler.cs (30)
310((XmlSchemaIdentityConstraint)element.Constraints[i]).CompiledConstraint = null; 318XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute; 344CleanupParticle((XmlSchemaParticle)groupBase.Items[i]); 597XmlSchemaSimpleType st = (XmlSchemaSimpleType)mainBaseTypes[i]; 1038groupRefBase.Items.Add(groupBase.Items[i]); 1051XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1078XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)choice.Items[i], false); 1083newChoice.Items.Add(p1Choice.Items[j]); 1114XmlSchemaParticle p1 = CannonicalizeParticle((XmlSchemaParticle)sequence.Items[i], false); 1119newSequence.Items.Add(p1Sequence.Items[j]); 1358if (!IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[i], baseAny)) { 1452if (GetMappingParticle((XmlSchemaParticle)derivedChoice.Items[i], baseChoice.Items) < 0) { 1470XmlSchemaParticle baseParticle = (XmlSchemaParticle)baseGroupBase.Items[i]; 1472&& IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) { 1494int i = GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[j], baseAll.Items); 1508if (!map[i] && !IsParticleEmptiable((XmlSchemaParticle)baseAll.Items[i])) { 1528if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0) 1544if (IsValidRestriction(particle, (XmlSchemaParticle)collection[i])) 1572CalculateEffectiveTotalRange((XmlSchemaParticle)choice.Items[i], out min, out max); 1599CalculateEffectiveTotalRange((XmlSchemaParticle)collection[i], out min, out max); 1649XmlSchemaAttribute attr = attributeGroup.Attributes[i] as XmlSchemaAttribute; 1663XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef)attributeGroup.Attributes[i]; 1698XmlSchemaAttribute attr = attributes[i] as XmlSchemaAttribute; 1719XmlSchemaAttributeGroupRef attributeGroupRef = (XmlSchemaAttributeGroupRef) attributes[i]; 2259XmlSchemaIdentityConstraint constraint = (XmlSchemaIdentityConstraint)constraints[i]; 2301XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2434Debug.Assert(!((XmlSchemaParticle)particles[i]).IsEmpty); 2444hasWildCard = BuildParticleContentModel(contentValidator, (XmlSchemaParticle)particles[i]); 2486CompileParticleElements(complexType, (XmlSchemaParticle)particles[i]); 2499CompileParticleElements((XmlSchemaParticle)particles[i]);
System\Xml\Schema\XmlSchema.cs (6)
558if ((complexType = items[i] as XmlSchemaComplexType) != null) { 561else if ((element = items[i] as XmlSchemaElement) != null) { 564else if ((group = items[i] as XmlSchemaGroup) != null) { 568newItem = items[i].Clone(); 575XmlSchemaExternal newInclude = (XmlSchemaExternal)this.includes[i].Clone(); 630XmlSchemaExternal ext = (XmlSchemaExternal)schema.Includes[i];
System\Xml\Schema\XmlSchemaComplexType.cs (5)
440xso = attributes[i]; 463XmlSchemaParticle p = (XmlSchemaParticle)groupBaseParticles[i]; 521XmlSchemaParticle p = (XmlSchemaParticle)groupBase.Items[i++]; 550if (attributes[i] is XmlSchemaAttributeGroupRef) { 554XmlSchemaAttribute attribute = attributes[i] as XmlSchemaAttribute;
System\Xml\Serialization\ImportContext.cs (1)
374Depends(attributes[i], refs);
System\Xml\Serialization\SchemaObjectWriter.cs (8)
113list.Add(NameOf(items[i])); 240list.Add(items[i]); 413XmlSchemaObject ai = (XmlSchemaObject)a[ia]; 544a.Add(facets[i]); 869Write49_XmlSchemaXPath(@"field", @"", (XmlSchemaXPath)a[ia]); 918Write49_XmlSchemaXPath(@"field", @"", (XmlSchemaXPath)a[ia]); 938Write49_XmlSchemaXPath("field", "", (XmlSchemaXPath)a[ia]); 985XmlSchemaObject ai = (XmlSchemaObject)a[ia];
System\Xml\Serialization\SoapSchemaImporter.cs (4)
321object item = items[i]; 369object item = group.Items[i]; 429XmlSchemaAttribute attribute = restriction.Attributes[i] as XmlSchemaAttribute; 571object facet = restriction.Facets[i];
System\Xml\Serialization\XmlSchemaImporter.cs (6)
671object item = items.Attributes[i]; 906object item = group.Items[i]; 990object item = group.Items[i]; 1017object item = schema.Items[j]; 1464object item = group.Attributes[i]; 1619object facet = restriction.Facets[i];
System\Xml\Serialization\XmlSchemas.cs (2)
432XmlSchemaObject o = schema.Items[i]; 449destination.Items.Add(schema.Items[i]);