19 instantiations of XmlSchemaElement
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\SchemaExporter.cs (5)
109XmlSchemaElement topLevelElement = new XmlSchemaElement(); 133XmlSchemaElement element = new XmlSchemaElement(); 374XmlSchemaElement element = new XmlSchemaElement(); 385XmlSchemaElement keyValueElement = new XmlSchemaElement(); 777XmlSchemaElement schemaRefElement = new XmlSchemaElement();
System\Runtime\Serialization\SchemaImporter.cs (1)
142XmlSchemaElement element = new XmlSchemaElement();
System.Private.Xml (13)
System\Xml\Schema\Inference\Infer.cs (5)
511xse = new XmlSchemaElement(); 529xse = new XmlSchemaElement(); 541xse = new XmlSchemaElement(); 597XmlSchemaElement elementReference = new XmlSchemaElement(); 2385XmlSchemaElement newElement = new XmlSchemaElement();
System\Xml\Schema\XsdBuilder.cs (1)
1316builder._xso = builder._element = new XmlSchemaElement();
System\Xml\Serialization\XmlSchemaExporter.cs (4)
239element = new XmlSchemaElement(); 524XmlSchemaElement schemaElement = new XmlSchemaElement(); 820element = new XmlSchemaElement(); 849XmlSchemaElement refElement = new XmlSchemaElement();
System\Xml\Serialization\XmlSchemaImporter.cs (2)
146XmlSchemaElement element = new XmlSchemaElement(); 218XmlSchemaElement element = new XmlSchemaElement();
System\Xml\Serialization\XmlSchemas.cs (1)
733XmlSchemaElement element = new XmlSchemaElement();
433 references to XmlSchemaElement
netstandard (1)
netstandard.cs (1)
2323[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaElement))]
System.Data.Common (52)
System\Data\XMLSchema.cs (52)
134private XmlSchemaElement? _dsElement; 189if (item is XmlSchemaElement elem) 413internal void HandleRefTableProperties(XmlSchemaElement element) 541if (el is XmlSchemaElement) 544if (isChoice && pt.MaxOccurs > decimal.One && (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition 545((XmlSchemaElement)el).MaxOccurs = pt.MaxOccurs; 547if (((XmlSchemaElement)el).RefName.Name.Length != 0) 549if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 554if (!IsTable((XmlSchemaElement)el)) 573foreach (XmlSchemaElement XmlElement in elements) 583private XmlSchemaElement? FindDatasetElement(XmlSchemaObjectCollection elements) 585foreach (XmlSchemaElement XmlElement in elements) 592XmlSchemaElement node = (XmlSchemaElement)elements[0]; 753XmlSchemaElement? sel = el as XmlSchemaElement; 767foreach (XmlSchemaElement element in _elements) 833ds.DataSetName = XmlConvert.DecodeName(((XmlSchemaElement)_elements[0]).Name)!; 882if (pt is XmlSchemaElement) 904XmlSchemaElement? el = item as XmlSchemaElement; 1435internal DataTable InstantiateSimpleTable(XmlSchemaElement node) 1530Debug.Assert((node is XmlSchemaElement) || (node is XmlSchemaAttribute), "GetInstanceName should only be called on attribute or elements"); 1532if (node is XmlSchemaElement el) 1548internal DataTable InstantiateTable(XmlSchemaElement node, XmlSchemaComplexType typeNode, bool isRef) 1921XmlSchemaElement? el = node as XmlSchemaElement; 1942typeNode = (XmlSchemaAnnotated?)_schemaTypes![isAttr ? ((XmlSchemaAttribute)node).SchemaTypeName : ((XmlSchemaElement)node).SchemaTypeName]; 2231else if (typeNode is XmlSchemaElement) 2233strType = ((XmlSchemaElement)typeNode).SchemaTypeName.Name; 2348internal void HandleElementColumn(XmlSchemaElement elem, DataTable table, bool isBase) 2351XmlSchemaElement? el = elem.Name != null ? elem : (XmlSchemaElement?)_elementsTable![elem.RefName]; 2406else if (typeNode is XmlSchemaElement) 2408strType = ((XmlSchemaElement)typeNode).SchemaTypeName.Name; 2549internal void HandleDataSet(XmlSchemaElement node, bool isNewDataSet) 2621if (el is XmlSchemaElement) 2623if (((XmlSchemaElement)el).RefName.Name.Length != 0) 2631DataTable? tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace); 2637if (node.ElementSchemaType != null || !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) 2642if ((((XmlSchemaElement)el).MaxOccurs != decimal.One) && (!isComplexTypeOrValidElementType)) 2649DataTable? child = HandleTable((XmlSchemaElement)el); 2666if (choiceEl is XmlSchemaElement) 2668if (((XmlSchemaParticle)el).MaxOccurs > decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2669((XmlSchemaElement)choiceEl).MaxOccurs = ((XmlSchemaParticle)el).MaxOccurs; 2670if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2673DataTable child = HandleTable((XmlSchemaElement)choiceEl)!; 2794internal bool IsTable(XmlSchemaElement node) 2837internal DataTable? HandleTable(XmlSchemaElement node)
System.Private.DataContractSerialization (38)
System\Runtime\Serialization\DataContractSet.cs (1)
659public List<XmlQualifiedName> ImportSchemaSet(XmlSchemaSet schemaSet, IEnumerable<XmlSchemaElement> elements, bool importXmlDataType)
System\Runtime\Serialization\SchemaExporter.cs (10)
104private XmlSchemaElement ExportTopLevelElement(DataContract dataContract, XmlSchema? schema) 109XmlSchemaElement topLevelElement = new XmlSchemaElement(); 133XmlSchemaElement element = new XmlSchemaElement(); 184private static void SetElementType(XmlSchemaElement element, DataContract dataContract, XmlSchema schema) 374XmlSchemaElement element = new XmlSchemaElement(); 385XmlSchemaElement keyValueElement = new XmlSchemaElement(); 527XmlSchemaElement topLevelElement = ExportTopLevelElement(dataContract, schema); 566if (item is XmlSchemaElement) 569qname = new XmlQualifiedName(((XmlSchemaElement)item).Name, schema.TargetNamespace); 777XmlSchemaElement schemaRefElement = new XmlSchemaElement();
System\Runtime\Serialization\SchemaHelper.cs (9)
16internal XmlSchemaElement? _element; 20internal SchemaObjectInfo(XmlSchemaType? type, XmlSchemaElement? element, XmlSchema? schema, List<XmlSchemaType>? knownTypes) 83internal static XmlSchemaElement? GetSchemaElement(SchemaObjectDictionary schemaInfo, XmlQualifiedName elementName) 93internal static XmlSchemaElement? GetSchemaElement(XmlSchemaSet schemas, XmlQualifiedName elementQName, out XmlSchema? outSchema) 105if (schemaObj is XmlSchemaElement schemaElement && schemaElement.Name == elementQName.Name) 146internal static void AddElementForm(XmlSchemaElement element, XmlSchema schema) 194internal static XmlSchema? GetSchemaWithGlobalElementDeclaration(XmlSchemaElement element, XmlSchemaSet schemas) 201if (schemaObject is XmlSchemaElement schemaElement && schemaElement == element) 218if (schemaObject is XmlSchemaElement schemaElement && schemaElement.SchemaTypeName.Equals(typeQName))
System\Runtime\Serialization\SchemaImporter.cs (18)
27private readonly IEnumerable<XmlSchemaElement>? _elements; 35internal SchemaImporter(XmlSchemaSet schemas, IEnumerable<XmlQualifiedName>? typeNames, IEnumerable<XmlSchemaElement>? elements, DataContractSet dataContractSet, bool importXmlDataType) 85foreach (XmlSchemaElement element in schema.Elements.Values) 105foreach (XmlSchemaElement element in _elements) 142XmlSchemaElement element = new XmlSchemaElement(); 289if (schemaObj is XmlSchemaElement schemaElement) 350private DataContract ImportAnonymousGlobalElement(XmlSchemaElement element, XmlQualifiedName typeQName, string? ns) 363private DataContract ImportAnonymousElement(XmlSchemaElement element, XmlQualifiedName typeQName) 573if (o is XmlSchemaElement localElement) 596if (items[i] is XmlSchemaElement element && element.RefName != null && 606if (schemaObject is XmlSchemaElement schemaElement) 684XmlSchemaElement? element = rootSequence.Items[memberIndex] as XmlSchemaElement; 922XmlSchemaElement? topLevelElement = SchemaHelper.GetSchemaElement(SchemaObjects, typeName); 944private void ImportClassMember(XmlSchemaElement element, ClassDataContract dataContract) 1058XmlSchemaElement element = (XmlSchemaElement)rootSequence.Items[0]; 1353private static void CheckIfElementUsesUnsupportedConstructs(XmlQualifiedName typeName, XmlSchemaElement element)
System.Private.Xml (334)
System\Xml\Core\XmlAsyncCheckReader.cs (1)
1059XmlSchemaElement? IXmlSchemaInfo.SchemaElement
System\Xml\Core\XsdValidatingReader.cs (2)
1852XmlSchemaElement? IXmlSchemaInfo.SchemaElement 2782XmlSchemaElement? schemaElem = _xmlSchemaInfo.SchemaElement;
System\Xml\Dom\DocumentSchemaValidator.cs (3)
103XmlSchemaElement? schemaElement = schemaInfo.SchemaElement; 656XmlSchemaElement? schemaElement = schemaObject as XmlSchemaElement;
System\Xml\Dom\XmlName.cs (4)
155public virtual XmlSchemaElement? SchemaElement 254public override XmlSchemaElement? SchemaElement 258return _decl as XmlSchemaElement; 295&& (object?)schemaInfo.SchemaElement == (object?)(_decl as XmlSchemaElement)
System\Xml\Schema\BaseProcessor.cs (1)
146Debug.Assert(item is XmlSchemaElement);
System\Xml\Schema\ContentValidator.cs (5)
1019XmlSchemaElement? elem = p as XmlSchemaElement; 1029XmlSchemaElement member = (XmlSchemaElement)grp.Members[i]!; 1900if (matched && _positions[pos].particle is XmlSchemaElement)
System\Xml\Schema\Inference\Infer.cs (40)
197XmlSchemaElement? xse = null; 198foreach (XmlSchemaElement? elem in schemas.GlobalElements.Values) 492private XmlSchemaElement AddElement(string localName, string prefix, string? childURI, XmlSchema? parentSchema, XmlSchemaObjectCollection? addLocation, int positionWithinCollection) 499XmlSchemaElement? xse; 500XmlSchemaElement? returnedElement; //this value will change to elementReference if childURI!= parentURI 597XmlSchemaElement elementReference = new XmlSchemaElement(); 632internal void InferElement(XmlSchemaElement xse, bool bCreatingNewType, XmlSchema parentSchema) 971if (((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem].GetType() != typeof(XmlSchemaElement)) 973XmlSchemaElement subElement = (XmlSchemaElement)((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem]; 994private XmlSchemaType? GetEffectiveSchemaType(XmlSchemaElement elem, bool bCreatingNewType) 1029internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr, XmlSchemaComplexType ct, ref int lastUsedSeqItem, XmlSchema? parentSchema, bool setMaxoccurs) 1050XmlSchemaElement e = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema, xss.Items, -1); 1059XmlSchemaElement? el = xsch.Items[i] as XmlSchemaElement; 1072XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema)!; 1078XmlSchemaElement subElement = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema, xsch.Items, -1); 1087XmlSchemaElement? el = particle as XmlSchemaElement; 1106XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema)!; 1117el = particle as XmlSchemaElement; 1127((XmlSchemaElement)minOccursCandidates[i]).MinOccurs = decimal.Zero; 1138((XmlSchemaElement)minOccursCandidates[i]).MinOccurs = decimal.Zero; 1140XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema)!; 1152XmlSchemaElement? subElement; 1153XmlSchemaElement? actualElement = null; 1177xsc.Items.Add(CreateNewElementforChoice((XmlSchemaElement)xss.Items[i])); 1197internal void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType? effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema) 1328internal XmlSchemaElement? FindGlobalElement(string? namespaceURI, string localName, out XmlSchema? parentSchema) 1331XmlSchemaElement? xse; 1346internal static XmlSchemaElement? FindElement(XmlSchemaObjectCollection elements, string elementName) 1350XmlSchemaElement? xse = elements[i] as XmlSchemaElement; 1380internal static XmlSchemaElement? FindElementRef(XmlSchemaObjectCollection elements, string elementName, string nsURI) 1384XmlSchemaElement? xse = elements[i] as XmlSchemaElement; 2383private XmlSchemaElement CreateNewElementforChoice(XmlSchemaElement copyElement) 2385XmlSchemaElement newElement = new XmlSchemaElement(); 2508internal void SetMinMaxOccurs(XmlSchemaElement el, bool setMaxOccurs)
System\Xml\Schema\IXmlSchemaInfo.cs (1)
21XmlSchemaElement? SchemaElement { get; }
System\Xml\Schema\Preprocessor.cs (11)
752else if (schemaItems[i] is XmlSchemaElement element) 786foreach (XmlSchemaElement? element in includedSchema.Elements.Values) 1259private void PreprocessElement(XmlSchemaElement element) 1314private void PreprocessLocalElement(XmlSchemaElement element) 1371private void PreprocessElementContent(XmlSchemaElement element) 1923XmlSchemaElement element = (XmlSchemaElement)items[i]; 1946XmlSchemaElement? element = items[i] as XmlSchemaElement; 1963XmlSchemaElement? element = items[i] as XmlSchemaElement;
System\Xml\Schema\SchemaCollectionCompiler.cs (65)
41foreach (XmlSchemaElement? element in _schema!.Elements.Values) 84foreach (XmlSchemaElement? element in _schema.Elements.Values) 118XmlSchemaElement? element; 137else if ((element = item as XmlSchemaElement) != null) 156XmlSchemaElement? element; 175else if ((element = schema.Items[i] as XmlSchemaElement) != null) 225foreach (XmlSchemaElement? element in _schema.Elements.Values) 263foreach (XmlSchemaElement? element in _schema.Elements.Values) 281foreach (XmlSchemaElement? element in _schema!.Elements.Values) 378private static void CleanupElement(XmlSchemaElement element) 419if (particle is XmlSchemaElement) 421CleanupElement((XmlSchemaElement)particle); 437SendValidationEvent(SR.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]!); 441XmlSchemaElement? examplar = (XmlSchemaElement?)_schema!.Elements[substitutionGroup.Examplar]; 457XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]!; 478SendValidationEvent(SR.Sch_NoExamplar, (XmlSchemaElement)substitutionGroup.Members[0]!); 485XmlSchemaElement? examplar = (XmlSchemaElement?)_schema!.Elements[substitutionGroup.Examplar]; 490XmlSchemaElement? element = (XmlSchemaElement?)substitutionGroup.Members[i]; 1074else if (particle is XmlSchemaElement) 1076return CanonicalizeElement((XmlSchemaElement)particle, substitution); 1100private XmlSchemaParticle CanonicalizeElement(XmlSchemaElement element, bool substitution) 1196XmlSchemaParticle p = CanonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 1334if (baseParticle is XmlSchemaElement) 1336if (derivedParticle is XmlSchemaElement) 1338return IsElementFromElement((XmlSchemaElement)derivedParticle, (XmlSchemaElement)baseParticle); 1347if (derivedParticle is XmlSchemaElement) 1349return IsElementFromAny((XmlSchemaElement)derivedParticle, (XmlSchemaAny)baseParticle); 1362if (derivedParticle is XmlSchemaElement) 1364return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, true); 1377if (derivedParticle is XmlSchemaElement) 1379return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, false); 1392if (derivedParticle is XmlSchemaElement) 1394return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, true); 1409private static bool IsElementFromElement(XmlSchemaElement derivedElement, XmlSchemaElement baseElement) 1420private static bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) 1456private bool IsElementFromGroupBase(XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase, bool skipEmptableOnly) 1617if (particle is XmlSchemaElement || particle is XmlSchemaAny) 2177private void CompileElement(XmlSchemaElement xe) 2194XmlSchemaElement? e = (XmlSchemaElement?)_schema!.Elements[xe.RefName]; 2223XmlSchemaElement? examplar = (XmlSchemaElement?)_schema!.Elements[xe.SubstitutionGroup]; 2371XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2390if (e.Particle1 is XmlSchemaElement) 2392if (e.Particle2 is XmlSchemaElement) 2394SendValidationEvent(SR.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2398SendValidationEvent(SR.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2!).NamespaceList!.ToString(), ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 2403if (e.Particle2 is XmlSchemaElement) 2405SendValidationEvent(SR.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1!).NamespaceList!.ToString(), ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaAny)e.Particle1); 2432if (particle is XmlSchemaElement) 2434sb.Append(((XmlSchemaElement)particle).QualifiedName); 2448XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2514if (particle is XmlSchemaElement element) 2576if (particle is XmlSchemaElement localElement) 2585XmlSchemaElement element = (XmlSchemaElement)complexType.LocalElements[localElement.QualifiedName]!;
System\Xml\Schema\SchemaCollectionpreProcessor.cs (11)
501foreach (XmlSchemaElement? element in includedSchema.Elements.Values) 559else if (schema.Items[i] is XmlSchemaElement element) 932private void PreprocessElement(XmlSchemaElement element) 987private void PreprocessLocalElement(XmlSchemaElement element) 1044private void PreprocessElementContent(XmlSchemaElement element) 1590XmlSchemaElement element = (XmlSchemaElement)schemaAll.Items[i]; 1614XmlSchemaElement? element = choices[i] as XmlSchemaElement; 1631XmlSchemaElement? element = sequences[i] as XmlSchemaElement;
System\Xml\Schema\SchemaElementDecl.cs (2)
27private XmlSchemaElement? _schemaElement; 181internal XmlSchemaElement? SchemaElement
System\Xml\Schema\SchemaInfo.cs (1)
132internal XmlSchemaElement? GetElement(XmlQualifiedName qname)
System\Xml\Schema\SchemaSetCompiler.cs (57)
57foreach (XmlSchemaElement? element in schema.Elements.Values) 150foreach (XmlSchemaElement? element in _elements.Values) 221foreach (XmlSchemaElement? element in _elements.Values) 262foreach (XmlSchemaElement? element in _elements.Values) 383private void CleanupElement(XmlSchemaElement element) 430XmlSchemaElement? element = particle as XmlSchemaElement; 449foreach (XmlSchemaElement? element in _elements.Values) 453XmlSchemaElement? headElement = _elements[element.SubstitutionGroup!] as XmlSchemaElement; 494SendValidationEvent(SR.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]!); 498XmlSchemaElement examplar = (XmlSchemaElement)_elements[substitutionGroup.Examplar]!; 517XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]!; 1147foreach (XmlSchemaElement? localElement in complexType.LocalElements.Values) 1204else if (particle is XmlSchemaElement) 1231private XmlSchemaParticle CanonicalizeElement(XmlSchemaElement element) 1245choice.Items.Add((XmlSchemaElement)substitutionGroup.Members[i]!); 1340XmlSchemaParticle p = CanonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1527if (derivedParticle is XmlSchemaElement derivedElem) 1531if (baseParticle is XmlSchemaElement baseElem) 1539else if (derivedParticle is XmlSchemaElement) 1541return IsElementFromElement((XmlSchemaElement)derivedParticle, baseElem); 1551if (derivedParticle is XmlSchemaElement) 1553return IsElementFromAny((XmlSchemaElement)derivedParticle, (XmlSchemaAny)baseParticle); 1566if (derivedParticle is XmlSchemaElement) 1568return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1593if (derivedParticle is XmlSchemaElement) 1595return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1627if (derivedParticle is XmlSchemaElement) 1629return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1652private bool IsElementFromElement(XmlSchemaElement derivedElement, XmlSchemaElement baseElement) 1681private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) 1785private bool IsElementFromGroupBase(XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase) 1969if (particle is XmlSchemaElement || particle is XmlSchemaAny) 2636private void CompileElement(XmlSchemaElement xe) 2653XmlSchemaElement? e = (XmlSchemaElement?)_elements[xe.RefName]; 2682XmlSchemaElement? examplar = (XmlSchemaElement?)_elements[xe.SubstitutionGroup]; 2840XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2859if (e.Particle1 is XmlSchemaElement) 2861if (e.Particle2 is XmlSchemaElement) 2863SendValidationEvent(SR.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2867SendValidationEvent(SR.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2!).ResolvedNamespace, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 2872if (e.Particle2 is XmlSchemaElement) 2874SendValidationEvent(SR.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1!).ResolvedNamespace, ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2894if (particle is XmlSchemaElement element) 2958if (particle is XmlSchemaElement localElement) 2967XmlSchemaElement element = (XmlSchemaElement)complexType.LocalElements[localElement.QualifiedName]!; 2986if (particle is XmlSchemaElement localElement)
System\Xml\Schema\XmlSchema.cs (3)
287XmlElement("element", typeof(XmlSchemaElement)), 459XmlSchemaElement? element; 466else if ((element = _items[i] as XmlSchemaElement) != null)
System\Xml\Schema\XmlSchemaAll.cs (1)
13[XmlElement("element", typeof(XmlSchemaElement))]
System\Xml\Schema\XmlSchemaChoice.cs (1)
13[XmlElement("element", typeof(XmlSchemaElement)),
System\Xml\Schema\XmlSchemaComplexType.cs (7)
476XmlSchemaElement? oldElem = particle as XmlSchemaElement; 485XmlSchemaElement newElem = (XmlSchemaElement)oldElem.Clone(parentSchema); 498private static XmlSchemaForm GetResolvedElementForm(XmlSchema? parentSchema, XmlSchemaElement element) 526XmlSchemaElement? elem = p as XmlSchemaElement;
System\Xml\Schema\XmlSchemaElement.cs (2)
279XmlSchemaElement newElem = (XmlSchemaElement)MemberwiseClone();
System\Xml\Schema\XmlSchemaInfo.cs (2)
13private XmlSchemaElement? _schemaElement; 98public XmlSchemaElement? SchemaElement
System\Xml\Schema\XmlSchemaParticle.cs (2)
138XmlSchemaElement? elem = this as XmlSchemaElement;
System\Xml\Schema\XmlSchemaSequence.cs (1)
12[XmlElement("element", typeof(XmlSchemaElement)),
System\Xml\Schema\XmlSchemaSet.cs (14)
983List<XmlSchemaElement>? newMembers = null; 984XmlSchemaElement headElement = (XmlSchemaElement)elements![substitutionGroup.Examplar]!; 991XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]!; 1000XmlSchemaElement element1 = (XmlSchemaElement)g.Members[j]!; 1003newMembers ??= new List<XmlSchemaElement>(); 1133foreach (XmlSchemaElement? element in otherSet.GlobalElements.Values) 1175foreach (XmlSchemaElement? elementToRemove in otherSet.GlobalElements.Values) 1353foreach (XmlSchemaElement? elementToRemove in schema.Elements.Values) 1355XmlSchemaElement? elem = (XmlSchemaElement?)elements![elementToRemove!.QualifiedName]; 1405else if (item is XmlSchemaElement)
System\Xml\Schema\XmlSchemaValidator.cs (18)
380if (!(partialValidationType is XmlSchemaElement || partialValidationType is XmlSchemaAttribute || partialValidationType is XmlSchemaType)) 444XmlSchemaElement? localSchemaElement = null; 934XmlSchemaElement? element = _partialValidationType as XmlSchemaElement; 947foreach (XmlSchemaElement? element in elements) 1167XmlSchemaElement? localSchemaElement = null; 1298XmlSchemaElement? headElement = null; 1347XmlSchemaElement? matchedElem = particle as XmlSchemaElement; 1376private XmlSchemaElement? GetSubstitutionGroupHead(XmlQualifiedName member) 1378XmlSchemaElement? memberElem = _compiledSchemaInfo.GetElement(member); 1384XmlSchemaElement? headElem = _compiledSchemaInfo.GetElement(head); 1583XmlSchemaElement? element = particle as XmlSchemaElement; 1599if (_partialValidationType is XmlSchemaElement element) 2100private XmlSchemaElement? GetSchemaElement() 2110XmlSchemaElement xsiElement = (XmlSchemaElement)beforeXsiDecl.SchemaElement.Clone(null);
System\Xml\Schema\XsdBuilder.cs (2)
638private XmlSchemaElement? _element; 991_element = (XmlSchemaElement)container;
System\Xml\Schema\XsdValidator.cs (2)
366XmlSchemaElement? element = particle as XmlSchemaElement;
System\Xml\Serialization\ImportContext.cs (8)
361else if (t == typeof(XmlSchemaElement)) 363XmlSchemaElement el = (XmlSchemaElement)item; 368XmlSchemaElement? head = (XmlSchemaElement?)_schemas.Find(el.SubstitutionGroup, typeof(XmlSchemaElement), false); 374el = (XmlSchemaElement)_schemas.Find(el.RefName, typeof(XmlSchemaElement), false)!;
System\Xml\Serialization\Mappings.cs (4)
1211internal void CheckDuplicateElement(XmlSchemaElement? element, string? elementNs) 1234foreach (XmlSchemaElement e in elements.Values) 1246private static bool Match(XmlSchemaElement e1, XmlSchemaElement e2)
System\Xml\Serialization\SchemaObjectWriter.cs (7)
82else if (o is XmlSchemaElement) 84return ((XmlSchemaElement)o).QualifiedName; 348else if (t == typeof(XmlSchemaElement)) 350Write46_XmlSchemaElement((XmlSchemaElement)o); 968private void Write46_XmlSchemaElement(XmlSchemaElement? o) 1187else if (ai is XmlSchemaElement) 1189Write46_XmlSchemaElement((XmlSchemaElement)ai);
System\Xml\Serialization\XmlSchemaExporter.cs (12)
229private XmlSchemaElement? ExportElement(ElementAccessor accessor) 237XmlSchemaElement? element = (XmlSchemaElement?)_elements[accessor]; 284if (item is XmlSchemaElement e) 367private void ExportElementMapping(XmlSchemaElement element, Mapping mapping, string? ns, bool isAny) 412private XmlSchemaType? ExportSpecialMapping(SpecialMapping mapping, string? ns, bool isAny, XmlSchemaElement? element) 524XmlSchemaElement schemaElement = new XmlSchemaElement(); 588private void ExportArrayMapping(ArrayMapping mapping, string? ns, XmlSchemaElement? element) 814XmlSchemaElement? element = (XmlSchemaElement?)_elements[accessor]; 849XmlSchemaElement refElement = new XmlSchemaElement(); 959private XmlQualifiedName ExportStructMapping(StructMapping mapping, string? ns, XmlSchemaElement? element)
System\Xml\Serialization\XmlSchemaImporter.cs (35)
146XmlSchemaElement element = new XmlSchemaElement(); 218XmlSchemaElement element = new XmlSchemaElement(); 237XmlSchemaElement element = FindElement(name); 251private ElementAccessor ImportElement(XmlSchemaElement element, string identifier, Type desiredMappingType, Type? baseType, string? ns, bool topLevelElement) 310private TypeMapping ImportElementType(XmlSchemaElement element, string identifier, Type desiredMappingType, Type? baseType, string? ns) 927else if (item is XmlSchemaElement element) 929XmlSchemaElement? headElement = GetTopLevelElement(element); 932XmlSchemaElement[] elements = GetEquivalentElements(headElement); 1016else if (item is XmlSchemaElement) 1017ImportElementMember((XmlSchemaElement)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref needExplicitOrder, allowDuplicates, allowUnboundedElements); 1031private XmlSchemaElement? GetTopLevelElement(XmlSchemaElement element) 1038private XmlSchemaElement[] GetEquivalentElements(XmlSchemaElement element) 1047if (item is XmlSchemaElement equivalentElement) 1059return (XmlSchemaElement[])equivalentElements.ToArray(typeof(XmlSchemaElement)); 1063private bool ImportSubstitutionGroupMember(XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string? ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates) 1065XmlSchemaElement[] elements = GetEquivalentElements(element); 1208private ElementAccessor? ImportArray(XmlSchemaElement element, string identifier, string? ns, bool repeats) 1267if (item.Items.Count != 1 || !(item.Items[0] is XmlSchemaElement)) return null; 1268XmlSchemaElement itemElement = (XmlSchemaElement)item.Items[0]; 1298private bool IsCyclicReferencedType(XmlSchemaElement element, List<string> identifiers) 1302XmlSchemaElement refElement = FindElement(element.RefName); 1317if ((items.Particle is XmlSchemaSequence || items.Particle is XmlSchemaAll) && items.Particle.Items.Count == 1 && items.Particle.Items[0] is XmlSchemaElement) 1319XmlSchemaElement innerRefElement = (XmlSchemaElement)items.Particle.Items[0]; 1371private void ImportElementMember(XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string? ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates, bool allowUnboundedElements) 1374XmlSchemaElement? headElement = GetTopLevelElement(element); 1922private XmlSchemaElement FindElement(XmlQualifiedName name) 1924XmlSchemaElement? element = (XmlSchemaElement?)Schemas.Find(name, typeof(XmlSchemaElement)); 1939private static XmlSchemaForm ElementForm(string? ns, XmlSchemaElement element)
System\Xml\Serialization\XmlSchemas.cs (6)
246else if (type == typeof(XmlSchemaElement)) 303if (o is XmlSchemaElement e) 446else if (o is XmlSchemaElement) 448return ((XmlSchemaElement)o).Name; 513else if (o is XmlSchemaElement e) 733XmlSchemaElement element = new XmlSchemaElement();
System\Xml\XPath\XPathNavigator.cs (2)
989XmlSchemaElement? schemaElement = null; 1053private static XmlReader GetValidatingReader(XmlReader reader, XmlSchemaSet schemas, ValidationEventHandler validationEvent, XmlSchemaType? schemaType, XmlSchemaElement? schemaElement, XmlSchemaAttribute? schemaAttribute)
System\Xml\XPath\XPathNavigatorReader.cs (1)
1135public XmlSchemaElement? SchemaElement { get { return IsReading ? this.schemaInfo!.SchemaElement : null; } }
System.Private.Xml.Linq (6)
System\Xml\Schema\XNodeValidator.cs (6)
140private string? GetDefaultValue(XmlSchemaElement se) 142XmlSchemaElement? seCopy = se; 146seCopy = schemas.GlobalElements[name] as XmlSchemaElement; 414XmlSchemaElement? schemaElement = si.SchemaElement; 492/// <param name="partialValidationType">An <see cref="XmlSchemaElement"/> or 508/// <param name="partialValidationType">An <see cref="XmlSchemaElement"/> or
System.Xml (1)
System.Xml.cs (1)
48[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaElement))]
System.Xml.ReaderWriter (1)
artifacts\obj\System.Xml.ReaderWriter\Debug\net9.0\System.Xml.ReaderWriter.Forwards.cs (1)
47[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Schema.XmlSchemaElement))]