18 instantiations of XmlSchemaElement
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (5)
529xse = new XmlSchemaElement(); 547xse = new XmlSchemaElement(); 559xse = new XmlSchemaElement(); 615XmlSchemaElement elementReference = new XmlSchemaElement(); 2405XmlSchemaElement newElement = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (1)
1323builder._xso = builder._element = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
296XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (1)
132XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (4)
266element = new XmlSchemaElement(); 563XmlSchemaElement schemaElement = new XmlSchemaElement(); 861element = new XmlSchemaElement(); 890XmlSchemaElement refElement = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (2)
205XmlSchemaElement element = new XmlSchemaElement(); 282XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (1)
862XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
143XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (1)
1742XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (1)
10778o = new Microsoft.Xml.Schema.XmlSchemaElement();
480 references to XmlSchemaElement
dotnet-svcutil-lib (480)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlAsyncCheckReader.cs (1)
1085XmlSchemaElement IXmlSchemaInfo.SchemaElement
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (2)
1766XmlSchemaElement IXmlSchemaInfo.SchemaElement 2628XmlSchemaElement schemaElem = _xmlSchemaInfo.SchemaElement;
FrameworkFork\Microsoft.Xml\Xml\Dom\DocumentSchemaValidator.cs (3)
109XmlSchemaElement schemaElement = schemaInfo.SchemaElement; 681XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement;
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlName.cs (4)
161public virtual XmlSchemaElement SchemaElement 268public override XmlSchemaElement SchemaElement 272return _decl as XmlSchemaElement; 309&& (object)schemaInfo.SchemaElement == (object)(_decl as XmlSchemaElement)
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (1)
160Debug.Assert(item is XmlSchemaElement);
FrameworkFork\Microsoft.Xml\Xml\schema\ContentValidator.cs (5)
1099XmlSchemaElement elem = p as XmlSchemaElement; 1109XmlSchemaElement member = (XmlSchemaElement)grp.Members[i]; 2009if (matched && _positions[pos].particle is XmlSchemaElement)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (43)
220XmlSchemaElement xse = null; 221foreach (XmlSchemaElement elem in schemas.GlobalElements.Values) 511private XmlSchemaElement AddElement(string localName, string prefix, string childURI, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, int positionWithinCollection) 518XmlSchemaElement xse = null; 519XmlSchemaElement returnedElement = xse; //this value will change to elementReference if childURI!= parentURI 615XmlSchemaElement elementReference = new XmlSchemaElement(); 650internal void InferElement(XmlSchemaElement xse, bool bCreatingNewType, XmlSchema parentSchema) 939XmlSchemaElement subelement = AddElement(_xtr.LocalName, _xtr.Prefix, _xtr.NamespaceURI, parentSchema, ((XmlSchemaSequence)ct.Particle).Items, -1); 948XmlSchemaElement subelement = AddElement(_xtr.LocalName, _xtr.Prefix, _xtr.NamespaceURI, parentSchema, ((XmlSchemaSequence)ct.Particle).Items, -1); 960XmlSchemaElement subelement = FindMatchingElement(bCreatingNewType || bCreatingNewSequence, _xtr, ct, ref lastUsedSeqItem, ref bParticleChanged, parentSchema, Maxoccursflag); 990if (((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem].GetType() != typeof(XmlSchemaElement)) 992XmlSchemaElement subElement = (XmlSchemaElement)((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem]; 1013private XmlSchemaType GetEffectiveSchemaType(XmlSchemaElement elem, bool bCreatingNewType) 1053internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr, XmlSchemaComplexType ct, ref int lastUsedSeqItem, ref bool bParticleChanged, XmlSchema parentSchema, bool setMaxoccurs) 1073XmlSchemaElement e = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema, xss.Items, -1); 1082XmlSchemaElement el = xsch.Items[i] as XmlSchemaElement; 1095XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema); 1101XmlSchemaElement subElement = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema, xsch.Items, -1); 1110XmlSchemaElement el = particle as XmlSchemaElement; 1129XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema); 1140el = particle as XmlSchemaElement; 1150((XmlSchemaElement)minOccursCandidates[i]).MinOccurs = decimal.Zero; 1161((XmlSchemaElement)minOccursCandidates[i]).MinOccurs = decimal.Zero; 1163XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema); 1175XmlSchemaElement subElement = null; 1176XmlSchemaElement actualElement = null; 1200xsc.Items.Add(CreateNewElementforChoice((XmlSchemaElement)xss.Items[i])); 1220internal void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema) 1350internal XmlSchemaElement FindGlobalElement(string namespaceURI, string localName, out XmlSchema parentSchema) 1353XmlSchemaElement xse = null; 1368internal XmlSchemaElement FindElement(XmlSchemaObjectCollection elements, string elementName) 1372XmlSchemaElement xse = elements[i] as XmlSchemaElement; 1400internal XmlSchemaElement FindElementRef(XmlSchemaObjectCollection elements, string elementName, string nsURI) 1404XmlSchemaElement xse = elements[i] as XmlSchemaElement; 2403private XmlSchemaElement CreateNewElementforChoice(XmlSchemaElement copyElement) 2405XmlSchemaElement newElement = new XmlSchemaElement(); 2528internal void SetMinMaxOccurs(XmlSchemaElement el, bool setMaxOccurs)
FrameworkFork\Microsoft.Xml\Xml\schema\IXmlSchemaInfo.cs (1)
33XmlSchemaElement SchemaElement { get; }
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (13)
782else if (schemaItems[i] is XmlSchemaElement) 784XmlSchemaElement element = (XmlSchemaElement)schemaItems[i]; 819foreach (XmlSchemaElement element in includedSchema.Elements.Values) 1292private void PreprocessElement(XmlSchemaElement element) 1347private void PreprocessLocalElement(XmlSchemaElement element) 1404private void PreprocessElementContent(XmlSchemaElement element) 1957XmlSchemaElement element = (XmlSchemaElement)items[i]; 1980XmlSchemaElement element = items[i] as XmlSchemaElement; 1997XmlSchemaElement element = items[i] as XmlSchemaElement;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (69)
41foreach (XmlSchemaElement element in _schema.Elements.Values) 80foreach (XmlSchemaElement element in _schema.Elements.Values) 114XmlSchemaElement element; 133else if ((element = item as XmlSchemaElement) != null) 152XmlSchemaElement element; 171else if ((element = schema.Items[i] as XmlSchemaElement) != null) 217foreach (XmlSchemaElement element in _schema.Elements.Values) 250foreach (XmlSchemaElement element in _schema.Elements.Values) 267foreach (XmlSchemaElement element in _schema.Elements.Values) 367private static void CleanupElement(XmlSchemaElement element) 408if (particle is XmlSchemaElement) 410CleanupElement((XmlSchemaElement)particle); 426SendValidationEvent(ResXml.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]); 429XmlSchemaElement examplar = (XmlSchemaElement)_schema.Elements[substitutionGroup.Examplar]; 444XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 465SendValidationEvent(ResXml.Sch_NoExamplar, (XmlSchemaElement)substitutionGroup.Members[0]); 472XmlSchemaElement examplar = (XmlSchemaElement)_schema.Elements[substitutionGroup.Examplar]; 477XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 1076else if (particle is XmlSchemaElement) 1078return CannonicalizeElement((XmlSchemaElement)particle, substitution); 1102private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element, bool substitution) 1198XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 1336if (baseParticle is XmlSchemaElement) 1338if (derivedParticle is XmlSchemaElement) 1340return IsElementFromElement((XmlSchemaElement)derivedParticle, (XmlSchemaElement)baseParticle); 1349if (derivedParticle is XmlSchemaElement) 1351return IsElementFromAny((XmlSchemaElement)derivedParticle, (XmlSchemaAny)baseParticle); 1364if (derivedParticle is XmlSchemaElement) 1366return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, true); 1379if (derivedParticle is XmlSchemaElement) 1381return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, false); 1394if (derivedParticle is XmlSchemaElement) 1396return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, true); 1411private bool IsElementFromElement(XmlSchemaElement derivedElement, XmlSchemaElement baseElement) 1422private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) 1458private bool IsElementFromGroupBase(XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase, bool skipEmptableOnly) 1619if (particle is XmlSchemaElement || particle is XmlSchemaAny) 2258private void CompileElement(XmlSchemaElement xe) 2275XmlSchemaElement e = (XmlSchemaElement)_schema.Elements[xe.RefName]; 2304XmlSchemaElement examplar = (XmlSchemaElement)_schema.Elements[xe.SubstitutionGroup]; 2456XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2479if (e.Particle1 is XmlSchemaElement) 2481if (e.Particle2 is XmlSchemaElement) 2483SendValidationEvent(ResXml.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2487SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2).NamespaceList.ToString(), ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 2492if (e.Particle2 is XmlSchemaElement) 2494SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1).NamespaceList.ToString(), ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaAny)e.Particle1); 2521if (particle is XmlSchemaElement) 2523sb.Append(((XmlSchemaElement)particle).QualifiedName); 2538XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2605if (particle is XmlSchemaElement) 2607XmlSchemaElement element = (XmlSchemaElement)particle; 2669if (particle is XmlSchemaElement) 2671XmlSchemaElement localElement = (XmlSchemaElement)particle; 2679XmlSchemaElement element = (XmlSchemaElement)complexType.LocalElements[localElement.QualifiedName];
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (13)
507foreach (XmlSchemaElement element in includedSchema.Elements.Values) 563else if (schema.Items[i] is XmlSchemaElement) 565XmlSchemaElement element = (XmlSchemaElement)schema.Items[i]; 939private void PreprocessElement(XmlSchemaElement element) 994private void PreprocessLocalElement(XmlSchemaElement element) 1051private void PreprocessElementContent(XmlSchemaElement element) 1603XmlSchemaElement element = (XmlSchemaElement)schemaAll.Items[i]; 1627XmlSchemaElement element = choices[i] as XmlSchemaElement; 1644XmlSchemaElement element = sequences[i] as XmlSchemaElement;
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaElementDecl.cs (2)
28private XmlSchemaElement _schemaElement; 182internal XmlSchemaElement SchemaElement
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaInfo.cs (2)
162internal XmlSchemaElement GetElement(XmlQualifiedName qname) 182internal XmlSchemaElement GetType(XmlQualifiedName qname)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (71)
58foreach (XmlSchemaElement element in schema.Elements.Values) 143foreach (XmlSchemaElement element in _elements.Values) 211foreach (XmlSchemaElement element in _elements.Values) 249foreach (XmlSchemaElement element in _elements.Values) 369private void CleanupElement(XmlSchemaElement element) 416XmlSchemaElement element = particle as XmlSchemaElement; 435foreach (XmlSchemaElement element in _elements.Values) 439XmlSchemaElement headElement = _elements[element.SubstitutionGroup] as XmlSchemaElement; 478SendValidationEvent(ResXml.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]); 481XmlSchemaElement examplar = (XmlSchemaElement)_elements[substitutionGroup.Examplar]; 498XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 1141foreach (XmlSchemaElement localElement in complexType.LocalElements.Values) 1196else if (particle is XmlSchemaElement) 1223private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element) 1237choice.Items.Add((XmlSchemaElement)substitutionGroup.Members[i]); 1324XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1509if (derivedParticle is XmlSchemaElement) 1511XmlSchemaElement derivedElem = (XmlSchemaElement)derivedParticle; 1514if (baseParticle is XmlSchemaElement) 1516XmlSchemaElement baseElem = (XmlSchemaElement)baseParticle; 1523else if (derivedParticle is XmlSchemaElement) 1525return IsElementFromElement((XmlSchemaElement)derivedParticle, baseElem); 1535if (derivedParticle is XmlSchemaElement) 1537return IsElementFromAny((XmlSchemaElement)derivedParticle, (XmlSchemaAny)baseParticle); 1550if (derivedParticle is XmlSchemaElement) 1552return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1577if (derivedParticle is XmlSchemaElement) 1579return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1611if (derivedParticle is XmlSchemaElement) 1613return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1636private bool IsElementFromElement(XmlSchemaElement derivedElement, XmlSchemaElement baseElement) 1665private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) 1769private bool IsElementFromGroupBase(XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase) 1955if (particle is XmlSchemaElement || particle is XmlSchemaAny) 2689private void CompileElement(XmlSchemaElement xe) 2706XmlSchemaElement e = (XmlSchemaElement)_elements[xe.RefName]; 2735XmlSchemaElement examplar = (XmlSchemaElement)_elements[xe.SubstitutionGroup]; 2899XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2922if (e.Particle1 is XmlSchemaElement) 2924if (e.Particle2 is XmlSchemaElement) 2926SendValidationEvent(ResXml.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2930SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2).ResolvedNamespace, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 2935if (e.Particle2 is XmlSchemaElement) 2937SendValidationEvent(ResXml.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1).ResolvedNamespace, ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2964if (particle is XmlSchemaElement) 2966sb.Append(((XmlSchemaElement)particle).QualifiedName); 2981XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 3049if (particle is XmlSchemaElement) 3051XmlSchemaElement element = (XmlSchemaElement)particle; 3114if (particle is XmlSchemaElement) 3116XmlSchemaElement localElement = (XmlSchemaElement)particle; 3124XmlSchemaElement element = (XmlSchemaElement)complexType.LocalElements[localElement.QualifiedName]; 3143if (particle is XmlSchemaElement) 3145XmlSchemaElement localElement = (XmlSchemaElement)particle;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (3)
365XmlElement("element", typeof(XmlSchemaElement)), 616XmlSchemaElement element; 623else if ((element = _items[i] as XmlSchemaElement) != null)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaAll.cs (1)
26[XmlElement("element", typeof(XmlSchemaElement))]
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaChoice.cs (1)
26[XmlElement("element", typeof(XmlSchemaElement)),
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (7)
563XmlSchemaElement oldElem = particle as XmlSchemaElement; 572XmlSchemaElement newElem = (XmlSchemaElement)oldElem.Clone(parentSchema); 585private static XmlSchemaForm GetResolvedElementForm(XmlSchema parentSchema, XmlSchemaElement element) 613XmlSchemaElement elem = p as XmlSchemaElement;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaElement.cs (2)
364XmlSchemaElement newElem = (XmlSchemaElement)MemberwiseClone();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaInfo.cs (2)
19private XmlSchemaElement _schemaElement; 104public XmlSchemaElement SchemaElement
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaParticle.cs (2)
163XmlSchemaElement elem = this as XmlSchemaElement;
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSequence.cs (1)
25[XmlElement("element", typeof(XmlSchemaElement)),
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (14)
1135List<XmlSchemaElement> newMembers = null; 1136XmlSchemaElement headElement = (XmlSchemaElement)elements[substitutionGroup.Examplar]; 1143XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 1152XmlSchemaElement element1 = (XmlSchemaElement)g.Members[j]; 1157newMembers = new List<XmlSchemaElement>(); 1290foreach (XmlSchemaElement element in otherSet.GlobalElements.Values) 1332foreach (XmlSchemaElement elementToRemove in otherSet.GlobalElements.Values) 1518foreach (XmlSchemaElement elementToRemove in schema.Elements.Values) 1520XmlSchemaElement elem = (XmlSchemaElement)elements[elementToRemove.QualifiedName]; 1565else if (item is XmlSchemaElement)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (20)
399if (!(partialValidationType is XmlSchemaElement || partialValidationType is XmlSchemaAttribute || partialValidationType is XmlSchemaType)) 473XmlSchemaElement localSchemaElement = null; 984XmlSchemaElement element = _partialValidationType as XmlSchemaElement; 995foreach (XmlSchemaElement element in elements) 1208XmlSchemaElement localSchemaElement = null; 1336XmlSchemaElement headElement = null; 1385XmlSchemaElement matchedElem = particle as XmlSchemaElement; 1414private XmlSchemaElement GetSubstitutionGroupHead(XmlQualifiedName member) 1416XmlSchemaElement memberElem = _compiledSchemaInfo.GetElement(member); 1422XmlSchemaElement headElem = _compiledSchemaInfo.GetElement(head); 1612XmlSchemaElement element = particle as XmlSchemaElement; 1627if (_partialValidationType is XmlSchemaElement) 1629XmlSchemaElement element = (XmlSchemaElement)_partialValidationType; 2144private XmlSchemaElement GetSchemaElement() 2153XmlSchemaElement xsiElement = (XmlSchemaElement)beforeXsiDecl.SchemaElement.Clone(null);
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (2)
647private XmlSchemaElement _element; 999_element = (XmlSchemaElement)container;
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (2)
371XmlSchemaElement element = particle as XmlSchemaElement;
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (8)
448else if (t == typeof(XmlSchemaElement)) 450XmlSchemaElement el = (XmlSchemaElement)item; 455XmlSchemaElement head = (XmlSchemaElement)_schemas.Find(el.SubstitutionGroup, typeof(XmlSchemaElement), false); 461el = (XmlSchemaElement)_schemas.Find(el.RefName, typeof(XmlSchemaElement), false);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (4)
1279internal void CheckDuplicateElement(XmlSchemaElement element, string elementNs) 1302foreach (XmlSchemaElement e in elements.Values) 1314private bool Match(XmlSchemaElement e1, XmlSchemaElement e2)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (7)
81else if (o is XmlSchemaElement) 83return ((XmlSchemaElement)o).QualifiedName; 349else if (t == typeof(XmlSchemaElement)) 351Write46_XmlSchemaElement((XmlSchemaElement)o); 969private void Write46_XmlSchemaElement(XmlSchemaElement o) 1193else if (ai is XmlSchemaElement) 1195Write46_XmlSchemaElement((XmlSchemaElement)ai);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
296XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (12)
132XmlSchemaElement element = new XmlSchemaElement(); 165private ElementAccessor ImportElement(XmlSchemaElement element, string ns) 189private TypeMapping ImportElementType(XmlSchemaElement element, string ns) 299XmlSchemaElement element = (XmlSchemaElement)type.Parent; 418else if (item is XmlSchemaElement) 419ImportElementMember((XmlSchemaElement)item, members, ns); 427private ElementAccessor ImportArray(XmlSchemaElement element, string ns) 534if (group.Items.Count != 1 || !(group.Items[0] is XmlSchemaElement)) 536XmlSchemaElement itemElement = (XmlSchemaElement)group.Items[0]; 549private void ImportElementMember(XmlSchemaElement element, CodeIdentifiers members, string ns)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (14)
256private XmlSchemaElement ExportElement(ElementAccessor accessor) 264XmlSchemaElement element = (XmlSchemaElement)_elements[accessor]; 315if (item is XmlSchemaElement) 317XmlSchemaElement e = (XmlSchemaElement)item; 405private void ExportElementMapping(XmlSchemaElement element, Mapping mapping, string ns, bool isAny) 451private XmlSchemaType ExportSpecialMapping(SpecialMapping mapping, string ns, bool isAny, XmlSchemaElement element) 563XmlSchemaElement schemaElement = new XmlSchemaElement(); 627private void ExportArrayMapping(ArrayMapping mapping, string ns, XmlSchemaElement element) 855XmlSchemaElement element = (XmlSchemaElement)_elements[accessor]; 890XmlSchemaElement refElement = new XmlSchemaElement(); 1002private XmlQualifiedName ExportStructMapping(StructMapping mapping, string ns, XmlSchemaElement element)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (39)
205XmlSchemaElement element = new XmlSchemaElement(); 282XmlSchemaElement element = new XmlSchemaElement(); 300XmlSchemaElement element = FindElement(name); 313private ElementAccessor ImportElement(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns, bool topLevelElement) 371private TypeMapping ImportElementType(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns) 1057else if (item is XmlSchemaElement) 1059XmlSchemaElement element = (XmlSchemaElement)item; 1060XmlSchemaElement headElement = GetTopLevelElement(element); 1063XmlSchemaElement[] elements = GetEquivalentElements(headElement); 1149else if (item is XmlSchemaElement) 1150ImportElementMember((XmlSchemaElement)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref needExplicitOrder, allowDuplicates, allowUnboundedElements); 1164private XmlSchemaElement GetTopLevelElement(XmlSchemaElement element) 1171private XmlSchemaElement[] GetEquivalentElements(XmlSchemaElement element) 1180if (item is XmlSchemaElement) 1182XmlSchemaElement equivalentElement = (XmlSchemaElement)item; 1193return (XmlSchemaElement[])equivalentElements.ToArray(typeof(XmlSchemaElement)); 1196private bool ImportSubstitutionGroupMember(XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates) 1198XmlSchemaElement[] elements = GetEquivalentElements(element); 1344private ElementAccessor ImportArray(XmlSchemaElement element, string identifier, string ns, bool repeats) 1403if (item.Items.Count != 1 || !(item.Items[0] is XmlSchemaElement)) return null; 1404XmlSchemaElement itemElement = (XmlSchemaElement)item.Items[0]; 1434private bool IsCyclicReferencedType(XmlSchemaElement element, List<string> identifiers) 1438XmlSchemaElement refElement = FindElement(element.RefName); 1453if ((items.Particle is XmlSchemaSequence || items.Particle is XmlSchemaAll) && items.Particle.Items.Count == 1 && items.Particle.Items[0] is XmlSchemaElement) 1455XmlSchemaElement innerRefElement = (XmlSchemaElement)items.Particle.Items[0]; 1512private void ImportElementMember(XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates, bool allowUnboundedElements) 1515XmlSchemaElement headElement = GetTopLevelElement(element); 2053private XmlSchemaElement FindElement(XmlQualifiedName name) 2055XmlSchemaElement element = (XmlSchemaElement)Schemas.Find(name, typeof(XmlSchemaElement)); 2070private XmlSchemaForm ElementForm(string ns, XmlSchemaElement element)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (10)
350else if (type == typeof(XmlSchemaElement)) 411if (o is XmlSchemaElement) 413XmlSchemaElement e = (XmlSchemaElement)o; 556else if (o is XmlSchemaElement) 558return ((XmlSchemaElement)o).Name; 623else if (o is XmlSchemaElement) 625XmlSchemaElement e = ((XmlSchemaElement)o); 862XmlSchemaElement element = new XmlSchemaElement();
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigator.cs (2)
1048XmlSchemaElement schemaElement = null; 1112private XmlReader GetValidatingReader(XmlReader reader, XmlSchemaSet schemas, ValidationEventHandler validationEvent, XmlSchemaType schemaType, XmlSchemaElement schemaElement, XmlSchemaAttribute schemaAttribute)
FrameworkFork\Microsoft.Xml\Xml\XPath\XPathNavigatorReader.cs (1)
1139public virtual XmlSchemaElement SchemaElement { get { return IsReading ? this.schemaInfo.SchemaElement : null; } }
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (8)
17internal XmlSchemaElement element; 21internal SchemaObjectInfo(XmlSchemaType type, XmlSchemaElement element, XmlSchema schema, List<XmlSchemaType> knownTypes) 70internal static XmlSchemaElement GetSchemaElement(SchemaObjectDictionary schemaInfo, XmlQualifiedName elementName) 80internal static XmlSchema GetSchemaWithGlobalElementDeclaration(XmlSchemaElement element, XmlSchemaSet schemas) 87XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement; 111XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (23)
25private ICollection<XmlSchemaElement> _elements; 38internal SchemaImporter(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames, ICollection<XmlSchemaElement> elements, XmlQualifiedName[] elementTypeNames, DataContractSet dataContractSet, bool importXmlDataType) 89foreach (XmlSchemaElement element in schema.Elements.Values) 109foreach (XmlSchemaElement element in _elements) 143XmlSchemaElement element = new XmlSchemaElement(); 293XmlSchemaElement schemaElement = schemaObj as XmlSchemaElement; 358private DataContract ImportAnonymousGlobalElement(XmlSchemaElement element, XmlQualifiedName typeQName, string ns) 370private DataContract ImportAnonymousElement(XmlSchemaElement element, XmlQualifiedName typeQName) 576if (!(o is XmlSchemaElement)) 579XmlSchemaElement localElement = (XmlSchemaElement)o; 603XmlSchemaElement element = items[i] as XmlSchemaElement; 614XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement; 691XmlSchemaElement element = rootSequence.Items[memberIndex] as XmlSchemaElement; 940XmlSchemaElement topLevelElement = SchemaHelper.GetSchemaElement(SchemaObjects, typeName); 960private void ImportClassMember(XmlSchemaElement element, ClassDataContract dataContract) 1069XmlSchemaElement element = (XmlSchemaElement)rootSequence.Items[0]; 1361private void CheckIfElementUsesUnsupportedConstructs(XmlQualifiedName typeName, XmlSchemaElement element)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XsdDataContractImporter.cs (10)
23private static readonly XmlSchemaElement[] s_emptyElementArray = new XmlSchemaElement[0]; 25private XmlSchemaElement[] _singleElementArray; 103public XmlQualifiedName Import(XmlSchemaSet schemas, XmlSchemaElement element) 147public bool CanImport(XmlSchemaSet schemas, XmlSchemaElement element) 167public CodeTypeReference GetCodeTypeReference(XmlQualifiedName typeName, XmlSchemaElement element) 221private XmlSchemaElement[] SingleElementArray 226_singleElementArray = new XmlSchemaElement[1]; 231private void InternalImport(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames, ICollection<XmlSchemaElement> elements, XmlQualifiedName[] elementTypeNames/*filled on return*/) 266private bool InternalCanImport(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames, ICollection<XmlSchemaElement> elements, XmlQualifiedName[] elementTypeNames)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (35)
233XmlSchemaElement detailElement; 573XmlSchemaElement detailElement; 596private bool ValidateFault(WsdlNS.OperationFault fault, OperationDescription description, out XmlSchemaElement detailElement, 658if (rootSequence != null && rootSequence.Items.Count == 1 && rootSequence.Items[0] is XmlSchemaElement) 659return CheckPart(((XmlSchemaElement)rootSequence.Items[0]).SchemaTypeName, DataContractSerializerMessageContractImporter.StreamBodyTypeName); 683if (rootSequence != null && rootSequence.Items.Count == 1 && rootSequence.Items[0] is XmlSchemaElement) 685XmlSchemaElement element = (XmlSchemaElement)rootSequence.Items[0]; 783private static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName) 789private static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName, out XmlSchema containingSchema) 791XmlSchemaElement element = null; 795element = (XmlSchemaElement)schema.Elements[elementName]; 918XmlSchemaElement element = FindSchemaElement(allSchemas, part.Element); 1163private static string GetLocalElementNamespace(string ns, XmlSchemaElement element, XmlSchemaForm elementFormDefault) 1206private static XmlQualifiedName GetTypeName(XmlSchemaElement element) 1247XmlSchemaElement schemaElement = FindSchemaElement(schemaSet, elementName, out schema); 1492internal MessagePartDescription ImportParameterElement(XmlSchemaElement element, string ns, bool isHeader, bool isMultiple) 1505internal virtual bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName) 1510internal virtual CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 1532internal abstract bool CanImportElement(XmlSchemaElement element); 1533internal abstract string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded); 1576internal override bool CanImportElement(XmlSchemaElement element) 1603XmlSchemaElement element = rootSequence.Items[i] as XmlSchemaElement; 1616internal override bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName) 1656XmlSchemaElement localElement = rootSequence.Items[i] as XmlSchemaElement; 1697internal override string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded) 1742XmlSchemaElement element = new XmlSchemaElement(); 1776internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 1790internal bool CanImportFaultElement(XmlSchemaElement element) 1957internal override bool CanImportElement(XmlSchemaElement element) 1977internal override bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName) 2012internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 2057internal override string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (8)
16static internal void AddElementForm(XmlSchemaElement element, XmlSchema schema) 22static internal void AddElementToSchema(XmlSchemaElement element, XmlSchema schema, XmlSchemaSet schemaSet) 24XmlSchemaElement existingElement = (XmlSchemaElement)schema.Elements[new XmlQualifiedName(element.Name, schema.TargetNamespace)]; 93private static string GetTypeName(XmlSchemaElement element) 104internal static bool IsMatch(XmlSchemaElement e1, XmlSchemaElement e2) 178internal static bool IsElementValueType(XmlSchemaElement element)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (11)
2384if (ai is Microsoft.Xml.Schema.XmlSchemaElement) 2386Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaElement)ai), false, false); 2729else if (ai is Microsoft.Xml.Schema.XmlSchemaElement) 2731Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaElement)ai), false, false); 2808private void Write52_XmlSchemaElement(string n, string ns, Microsoft.Xml.Schema.XmlSchemaElement o, bool isNullable, bool needType) 2818if (t == typeof(Microsoft.Xml.Schema.XmlSchemaElement)) 4281Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaElement)a[ia]), false, false); 4344else if (ai is Microsoft.Xml.Schema.XmlSchemaElement) 4346Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.XmlSchemaElement)ai), false, false); 10762private Microsoft.Xml.Schema.XmlSchemaElement Read52_XmlSchemaElement(bool isNullable, bool checkType) 10777Microsoft.Xml.Schema.XmlSchemaElement o;