41 instantiations of XmlSchemaElement
System.Data (1)
fx\src\data\System\Data\DataSet.cs (1)
3292XmlSchemaElement elem = new XmlSchemaElement();
System.Runtime.Serialization (6)
System\Runtime\Serialization\SchemaExporter.cs (5)
117XmlSchemaElement topLevelElement = new XmlSchemaElement(); 139XmlSchemaElement element = new XmlSchemaElement(); 374XmlSchemaElement element = new XmlSchemaElement(); 385XmlSchemaElement keyValueElement = new XmlSchemaElement(); 780XmlSchemaElement schemaRefElement = new XmlSchemaElement();
System\Runtime\Serialization\SchemaImporter.cs (1)
144XmlSchemaElement element = new XmlSchemaElement();
System.ServiceModel (5)
System\ServiceModel\Description\MessageContractExporter.cs (3)
358XmlSchemaElement element = new XmlSchemaElement(); 376XmlSchemaElement element = new XmlSchemaElement(); 415XmlSchemaElement wrapperGlobalElement = new XmlSchemaElement();
System\ServiceModel\Description\MessageContractImporter.cs (1)
1754XmlSchemaElement element = new XmlSchemaElement();
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
96XmlSchemaElement element = new XmlSchemaElement();
System.ServiceModel.Discovery (12)
System\ServiceModel\Discovery\SchemaUtility.cs (12)
276XmlSchemaElement metadataVersionElement = new XmlSchemaElement(); 293XmlSchemaElement eprElement = new XmlSchemaElement(); 328XmlSchemaElement eprElement = new XmlSchemaElement(); 332XmlSchemaElement typesElement = new XmlSchemaElement(); 337XmlSchemaElement scopesElement = new XmlSchemaElement(); 342XmlSchemaElement xAddrsElement = new XmlSchemaElement(); 347XmlSchemaElement metadataVersionElement = new XmlSchemaElement(); 388XmlSchemaElement typesElement = new XmlSchemaElement(); 393XmlSchemaElement scopesElement = new XmlSchemaElement(); 468XmlSchemaElement scopesElement = new XmlSchemaElement(); 514XmlSchemaElement typesElement = new XmlSchemaElement(); 540XmlSchemaElement xAddrsElement = new XmlSchemaElement();
System.Web.Services (2)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
81XmlSchemaElement element = new XmlSchemaElement();
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
8705o = new global::System.Xml.Schema.XmlSchemaElement();
System.Xml (15)
System\Xml\Schema\Inference\Infer.cs (5)
527xse = new XmlSchemaElement(); 545xse = new XmlSchemaElement(); 558xse=new XmlSchemaElement(); 614XmlSchemaElement elementReference = new XmlSchemaElement(); 2366XmlSchemaElement newElement = new XmlSchemaElement();
System\Xml\Schema\XsdBuilder.cs (1)
1249builder.xso = builder.element = new XmlSchemaElement();
System\Xml\Serialization\SoapSchemaExporter.cs (1)
257XmlSchemaElement element = new XmlSchemaElement();
System\Xml\Serialization\SoapSchemaImporter.cs (1)
129XmlSchemaElement element = new XmlSchemaElement();
System\Xml\Serialization\XmlSchemaExporter.cs (4)
235element = new XmlSchemaElement(); 487XmlSchemaElement schemaElement = new XmlSchemaElement(); 734element = new XmlSchemaElement(); 759XmlSchemaElement refElement = new XmlSchemaElement();
System\Xml\Serialization\XmlSchemaImporter.cs (2)
188XmlSchemaElement element = new XmlSchemaElement(); 258XmlSchemaElement element = new XmlSchemaElement();
System\Xml\Serialization\XmlSchemas.cs (1)
712XmlSchemaElement element = new XmlSchemaElement();
632 references to XmlSchemaElement
System.Data (77)
fx\src\data\System\Data\DataSet.cs (15)
3292XmlSchemaElement elem = new XmlSchemaElement(); 3518if (!(context is XmlSchemaElement)) 3521XmlSchemaElement e = (XmlSchemaElement)context; 3582XmlSchemaElement ds = FindDataSetElement(schema); // implement FindDataTableElement(schema) 3598if (!(items[0] is XmlSchemaElement && items[1] is XmlSchemaAny)) return null; 3599XmlSchemaElement schema = (XmlSchemaElement)items[0]; 3619XmlSchemaElement ds = FindDataSetElement(schema); 3637internal XmlSchemaElement FindDataSetElement(XmlSchema schema) { 3639if (item is XmlSchemaElement && IsDataSet((XmlSchemaElement)item)) { 3640return (XmlSchemaElement)item; 3646internal string GenerateTypedDataSet(XmlSchemaElement element, XmlSchemas schemas, CodeNamespace codeNamespace, StringCollection references, CodeDomProvider codeProvider) { 3679internal static bool IsDataSet(XmlSchemaElement e) {
fx\src\data\System\Data\SQLTypes\SqlTypesSchemaImporter.cs (2)
78if (context is XmlSchemaElement) { 97if ((type is XmlSchemaSimpleType) && (context is XmlSchemaElement)) {
fx\src\data\System\Data\XMLSchema.cs (60)
125XmlSchemaElement dsElement = null; 172if (item is XmlSchemaElement) { 173XmlSchemaElement elem = (XmlSchemaElement)item; 357internal void HandleRefTableProperties(ArrayList RefTables, XmlSchemaElement element) { 472if (el is XmlSchemaElement) { 475if (isChoice && pt.MaxOccurs > Decimal.One && (((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) // we know frominference condition 476((XmlSchemaElement)el).MaxOccurs = pt.MaxOccurs; 478if (((XmlSchemaElement)el).RefName.Name.Length != 0) { 479if (!FromInference || (((XmlSchemaElement)el).MaxOccurs != Decimal.One && !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType))) 484if (!IsTable ((XmlSchemaElement)el)) 501foreach(XmlSchemaElement XmlElement in elements) { 509private XmlSchemaElement FindDatasetElement(XmlSchemaObjectCollection elements) { 510foreach(XmlSchemaElement XmlElement in elements) { 516XmlSchemaElement node = (XmlSchemaElement)elements[0]; 651XmlSchemaElement sel = el as XmlSchemaElement; 664foreach (XmlSchemaElement element in elements) { 716ds.DataSetName = XmlConvert.DecodeName(((XmlSchemaElement)elements[0]).Name); 757if (pt is XmlSchemaElement) { 776XmlSchemaElement el = item as XmlSchemaElement; 779((XmlSchemaElement)el).MaxOccurs = pt.MaxOccurs; 788child = HandleTable ((XmlSchemaElement)el); 796child = HandleTable ((XmlSchemaElement)el); 804HandleElementColumn((XmlSchemaElement)el, table, isBase); 1226internal DataTable InstantiateSimpleTable(XmlSchemaElement node) { 1317Debug.Assert( (node is XmlSchemaElement) || (node is XmlSchemaAttribute), "GetInstanceName should only be called on attribute or elements"); 1319if (node is XmlSchemaElement) { 1320XmlSchemaElement el = (XmlSchemaElement) node; 1334internal DataTable InstantiateTable(XmlSchemaElement node, XmlSchemaComplexType typeNode, bool isRef) { 1667XmlSchemaElement el = node as XmlSchemaElement; 1686typeNode = (XmlSchemaAnnotated)schemaTypes[isAttr ? ((XmlSchemaAttribute)node).SchemaTypeName : ((XmlSchemaElement)node).SchemaTypeName]; 1939else if (typeNode is XmlSchemaElement) { 1940strType = ((XmlSchemaElement)typeNode).SchemaTypeName.Name; 2040internal void HandleElementColumn(XmlSchemaElement elem, DataTable table, bool isBase){ 2042XmlSchemaElement el = elem.Name != null ? elem : (XmlSchemaElement) elementsTable[elem.RefName]; 2092else if (typeNode is XmlSchemaElement) { // theoratically no named simpletype should come here 2093strType = ((XmlSchemaElement)typeNode).SchemaTypeName.Name; 2213internal void HandleDataSet(XmlSchemaElement node, bool isNewDataSet) { 2275if (el is XmlSchemaElement) { 2276if(((XmlSchemaElement)el).RefName.Name.Length != 0) { 2281DataTable tempTable = _ds.Tables.GetTable(XmlConvert.DecodeName(GetInstanceName((XmlSchemaElement)el)), node.QualifiedName.Namespace); 2286if (node.ElementSchemaType != null || !(((XmlSchemaElement)el).SchemaType is XmlSchemaComplexType)) { 2290if ((((XmlSchemaElement)el).MaxOccurs != Decimal.One ) && (!isComplexTypeOrValidElementType)) { 2296DataTable child = HandleTable ((XmlSchemaElement)el); 2309if (choiceEl is XmlSchemaElement) { 2310if (((XmlSchemaParticle)el).MaxOccurs > Decimal.One && (((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType)) // amir 2311((XmlSchemaElement)choiceEl).MaxOccurs = ((XmlSchemaParticle)el).MaxOccurs; 2312if ((((XmlSchemaElement)choiceEl).RefName.Name.Length != 0) && (!FromInference && ((XmlSchemaElement)choiceEl).MaxOccurs != Decimal.One && !(((XmlSchemaElement)choiceEl).SchemaType is XmlSchemaComplexType))) 2315DataTable child = HandleTable ((XmlSchemaElement)choiceEl); 2420internal bool IsTable(XmlSchemaElement node) { 2457internal DataTable HandleTable(XmlSchemaElement node) {
System.Data.Services.Design (6)
System\Data\EntityModel\EntityClassGenerator.cs (4)
291XmlSchemaElement e = item as XmlSchemaElement; 315XmlSchemaElement entityContainerElement = csdlSchema.Elements[new XmlQualifiedName("EntityContainer", csdlSchema.TargetNamespace)] as XmlSchemaElement;
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (2)
123XmlSchemaElement schemaElement = expected as XmlSchemaElement;
System.Runtime.Serialization (55)
System\Runtime\Serialization\SchemaExporter.cs (10)
112XmlSchemaElement ExportTopLevelElement(DataContract dataContract, XmlSchema schema) 117XmlSchemaElement topLevelElement = new XmlSchemaElement(); 139XmlSchemaElement element = new XmlSchemaElement(); 190void SetElementType(XmlSchemaElement element, DataContract dataContract, XmlSchema schema) 374XmlSchemaElement element = new XmlSchemaElement(); 385XmlSchemaElement keyValueElement = new XmlSchemaElement(); 521XmlSchemaElement topLevelElement = ExportTopLevelElement(dataContract, schema); 563if (item is XmlSchemaElement) 566qname = new XmlQualifiedName(((XmlSchemaElement)item).Name, schema.TargetNamespace); 780XmlSchemaElement schemaRefElement = new XmlSchemaElement();
System\Runtime\Serialization\SchemaHelper.cs (12)
17internal XmlSchemaElement element; 21internal SchemaObjectInfo(XmlSchemaType type, XmlSchemaElement element, XmlSchema schema, List<XmlSchemaType> knownTypes) 94internal static XmlSchemaElement GetSchemaElement(XmlSchemaSet schemas, XmlQualifiedName elementQName, out XmlSchema outSchema) 106XmlSchemaElement schemaElement = schemaObj as XmlSchemaElement; 117internal static XmlSchemaElement GetSchemaElement(SchemaObjectDictionary schemaInfo, XmlQualifiedName elementName) 158internal static void AddElementForm(XmlSchemaElement element, XmlSchema schema) 186internal static XmlSchema GetSchemaWithGlobalElementDeclaration(XmlSchemaElement element, XmlSchemaSet schemas) 193XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement; 217XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement;
System\Runtime\Serialization\SchemaImporter.cs (23)
27ICollection<XmlSchemaElement> elements; 39internal SchemaImporter(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames, ICollection<XmlSchemaElement> elements, XmlQualifiedName[] elementTypeNames, DataContractSet dataContractSet, bool importXmlDataType) 90foreach (XmlSchemaElement element in schema.Elements.Values) 110foreach (XmlSchemaElement element in elements) 144XmlSchemaElement element = new XmlSchemaElement(); 294XmlSchemaElement schemaElement = schemaObj as XmlSchemaElement; 359DataContract ImportAnonymousGlobalElement(XmlSchemaElement element, XmlQualifiedName typeQName, string ns) 371DataContract ImportAnonymousElement(XmlSchemaElement element, XmlQualifiedName typeQName) 577if (!(o is XmlSchemaElement)) 580XmlSchemaElement localElement = (XmlSchemaElement)o; 604XmlSchemaElement element = items[i] as XmlSchemaElement; 615XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement; 692XmlSchemaElement element = rootSequence.Items[memberIndex] as XmlSchemaElement; 946XmlSchemaElement topLevelElement = SchemaHelper.GetSchemaElement(SchemaObjects, typeName); 966void ImportClassMember(XmlSchemaElement element, ClassDataContract dataContract) 1075XmlSchemaElement element = (XmlSchemaElement)rootSequence.Items[0]; 1366void CheckIfElementUsesUnsupportedConstructs(XmlQualifiedName typeName, XmlSchemaElement element)
System\Runtime\Serialization\XsdDataContractImporter.cs (10)
30static readonly XmlSchemaElement[] emptyElementArray = new XmlSchemaElement[0]; 32XmlSchemaElement[] singleElementArray; 111public XmlQualifiedName Import(XmlSchemaSet schemas, XmlSchemaElement element) 157public bool CanImport(XmlSchemaSet schemas, XmlSchemaElement element) 177public CodeTypeReference GetCodeTypeReference(XmlQualifiedName typeName, XmlSchemaElement element) 231XmlSchemaElement[] SingleElementArray 236singleElementArray = new XmlSchemaElement[1]; 245void InternalImport(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames, ICollection<XmlSchemaElement> elements, XmlQualifiedName[] elementTypeNames/*filled on return*/) 295bool InternalCanImport(XmlSchemaSet schemas, ICollection<XmlQualifiedName> typeNames, ICollection<XmlSchemaElement> elements, XmlQualifiedName[] elementTypeNames)
System.ServiceModel (51)
System\ServiceModel\Description\MessageContractExporter.cs (7)
48void AddElementToSchema(XmlSchemaElement element, string elementNs, XmlSchemaSet schemaSet) 358XmlSchemaElement element = new XmlSchemaElement(); 376XmlSchemaElement element = new XmlSchemaElement(); 415XmlSchemaElement wrapperGlobalElement = new XmlSchemaElement(); 881XmlSchemaElement element; 883internal OperationElement(XmlSchemaElement element, OperationDescription operation) 888internal XmlSchemaElement Element { get { return element; } }
System\ServiceModel\Description\MessageContractImporter.cs (35)
244XmlSchemaElement detailElement; 584XmlSchemaElement detailElement; 607bool ValidateFault(WsdlNS.OperationFault fault, OperationDescription description, out XmlSchemaElement detailElement, 669if (rootSequence != null && rootSequence.Items.Count == 1 && rootSequence.Items[0] is XmlSchemaElement) 670return CheckPart(((XmlSchemaElement)rootSequence.Items[0]).SchemaTypeName, DataContractSerializerMessageContractImporter.StreamBodyTypeName); 694if (rootSequence != null && rootSequence.Items.Count == 1 && rootSequence.Items[0] is XmlSchemaElement) 696XmlSchemaElement element = (XmlSchemaElement)rootSequence.Items[0]; 795static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName) 801static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName, out XmlSchema containingSchema) 803XmlSchemaElement element = null; 807element = (XmlSchemaElement)schema.Elements[elementName]; 930XmlSchemaElement element = FindSchemaElement(allSchemas, part.Element); 1175static string GetLocalElementNamespace(string ns, XmlSchemaElement element, XmlSchemaForm elementFormDefault) 1218static XmlQualifiedName GetTypeName(XmlSchemaElement element) 1259XmlSchemaElement schemaElement = FindSchemaElement(schemaSet, elementName, out schema); 1504internal MessagePartDescription ImportParameterElement(XmlSchemaElement element, string ns, bool isHeader, bool isMultiple) 1517internal virtual bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName) 1522internal virtual CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 1544internal abstract bool CanImportElement(XmlSchemaElement element); 1545internal abstract string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded); 1588internal override bool CanImportElement(XmlSchemaElement element) 1615XmlSchemaElement element = rootSequence.Items[i] as XmlSchemaElement; 1628internal override bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName) 1668XmlSchemaElement localElement = rootSequence.Items[i] as XmlSchemaElement; 1709internal override string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded) 1754XmlSchemaElement element = new XmlSchemaElement(); 1788internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 1802internal bool CanImportFaultElement(XmlSchemaElement element) 1970internal override bool CanImportElement(XmlSchemaElement element) 1990internal override bool CanImportFault(XmlSchemaElement detailElement, XmlQualifiedName detailElementTypeName) 2025internal override CodeTypeReference ImportFaultElement(XmlQualifiedName elementName, XmlSchemaElement element, bool isEncoded) 2070internal override string ImportElement(MessagePartDescription part, XmlSchemaElement element, bool isEncoded)
System\ServiceModel\Description\SchemaHelper.cs (8)
15static internal void AddElementForm(XmlSchemaElement element, XmlSchema schema) 21static internal void AddElementToSchema(XmlSchemaElement element, XmlSchema schema, XmlSchemaSet schemaSet) 23XmlSchemaElement existingElement = (XmlSchemaElement)schema.Elements[new XmlQualifiedName(element.Name, schema.TargetNamespace)]; 92static string GetTypeName(XmlSchemaElement element) 103internal static bool IsMatch(XmlSchemaElement e1, XmlSchemaElement e2) 177internal static bool IsElementValueType(XmlSchemaElement element)
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (1)
96XmlSchemaElement element = new XmlSchemaElement();
System.ServiceModel.Discovery (12)
System\ServiceModel\Discovery\SchemaUtility.cs (12)
276XmlSchemaElement metadataVersionElement = new XmlSchemaElement(); 293XmlSchemaElement eprElement = new XmlSchemaElement(); 328XmlSchemaElement eprElement = new XmlSchemaElement(); 332XmlSchemaElement typesElement = new XmlSchemaElement(); 337XmlSchemaElement scopesElement = new XmlSchemaElement(); 342XmlSchemaElement xAddrsElement = new XmlSchemaElement(); 347XmlSchemaElement metadataVersionElement = new XmlSchemaElement(); 388XmlSchemaElement typesElement = new XmlSchemaElement(); 393XmlSchemaElement scopesElement = new XmlSchemaElement(); 468XmlSchemaElement scopesElement = new XmlSchemaElement(); 514XmlSchemaElement typesElement = new XmlSchemaElement(); 540XmlSchemaElement xAddrsElement = new XmlSchemaElement();
System.ServiceModel.Web (27)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (27)
69{ typeof(XmlSchemaElement), XmlElementHandler }, 118{ typeof(XmlSchemaElement), JsonElementHandler }, 129elementDepth = new Dictionary<XmlSchemaElement, int>(), 149elementDepth = new Dictionary<XmlSchemaElement, int>(), 234XmlSchemaElement element = (XmlSchemaElement)schemaObject; 235XmlSchemaElement contentElement = GenerateValidElementsComment(element, context); 283XmlSchemaElement element = innerObject as XmlSchemaElement; 370XmlSchemaElement element = (XmlSchemaElement)schemaObject; 371XmlSchemaElement contentElement = GetDerivedTypes(element, context).FirstOrDefault(); 427XmlSchemaElement element = innerObject as XmlSchemaElement; 713static XmlSchemaElement GenerateValidElementsComment(XmlSchemaElement element, HelpExampleGeneratorContext context) 715XmlSchemaElement firstNonAbstractElement = element; 717foreach (XmlSchemaElement derivedElement in GetDerivedTypes(element, context)) 739static IEnumerable<XmlSchemaElement> GetDerivedTypes(XmlSchemaElement element, HelpExampleGeneratorContext context) 743foreach (XmlSchemaElement derivedElement in context.schemaSet.GlobalElements.Values.OfType<XmlSchemaElement>().Where(e => 770static bool IsArrayElementType(XmlSchemaElement element) 780XmlSchemaElement firstElement = sequence.Items[0] as XmlSchemaElement; 791static bool IsObject(XmlSchemaElement element) 802public IDictionary<XmlSchemaElement, int> elementDepth;
System.Web.Extensions (4)
Compilation\WCFModel\SchemaMerger.cs (1)
45new SchemaTopLevelItemType(typeof(XmlSchemaElement), "element"),
Script\Services\WebServiceTypeData.cs (3)
132if (!(o is XmlSchemaElement)) 135XmlSchemaElement localElement = (XmlSchemaElement)o;
System.Web.Services (18)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
81XmlSchemaElement element = new XmlSchemaElement();
System\Web\Services\Description\SchemaCompiler.cs (3)
97else if (o is XmlSchemaElement) { 98XmlSchemaElement e = ((XmlSchemaElement)o);
System\Web\Services\Description\ServiceDescriptionImporter.cs (3)
446XmlSchemaElement element = (XmlSchemaElement)allSchemas.Find(part.Element, typeof(XmlSchemaElement));
System\Web\Services\Description\ServiceDescriptionSerializer.cs (11)
1867if (ai is global::System.Xml.Schema.XmlSchemaElement) { 1868Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaElement)ai), false, false); 2139else if (ai is global::System.Xml.Schema.XmlSchemaElement) { 2140Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaElement)ai), false, false); 2204void Write52_XmlSchemaElement(string n, string ns, global::System.Xml.Schema.XmlSchemaElement o, bool isNullable, bool needType) { 2211if (t == typeof(global::System.Xml.Schema.XmlSchemaElement)) { 3393Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaElement)a[ia]), false, false); 3444else if (ai is global::System.Xml.Schema.XmlSchemaElement) { 3445Write52_XmlSchemaElement(@"element", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.XmlSchemaElement)ai), false, false); 8692global::System.Xml.Schema.XmlSchemaElement Read52_XmlSchemaElement(bool isNullable, bool checkType) { 8704global::System.Xml.Schema.XmlSchemaElement o;
System.Xml (377)
System\Xml\Core\XmlAsyncCheckReader.cs (1)
908XmlSchemaElement IXmlSchemaInfo.SchemaElement {
System\Xml\Core\XsdValidatingReader.cs (2)
1446XmlSchemaElement IXmlSchemaInfo.SchemaElement { 2179XmlSchemaElement schemaElem = xmlSchemaInfo.SchemaElement;
System\Xml\Dom\DocumentSchemaValidator.cs (3)
104XmlSchemaElement schemaElement = schemaInfo.SchemaElement; 586XmlSchemaElement schemaElement = schemaObject as XmlSchemaElement;
System\Xml\Dom\XmlName.cs (4)
127public virtual XmlSchemaElement SchemaElement { 214public override XmlSchemaElement SchemaElement { 216return decl as XmlSchemaElement; 247&& (object)schemaInfo.SchemaElement == (object)(decl as XmlSchemaElement)
System\Xml\Schema\BaseProcessor.cs (1)
128Debug.Assert(item is XmlSchemaElement);
System\Xml\Schema\ContentValidator.cs (5)
945XmlSchemaElement elem = p as XmlSchemaElement; 952XmlSchemaElement member = (XmlSchemaElement)grp.Members[i]; 1714if (matched && positions[pos].particle is XmlSchemaElement) { //We found a match in the list, break at that bitset
System\Xml\Schema\Inference\Infer.cs (43)
222XmlSchemaElement xse = null; 223foreach (XmlSchemaElement elem in schemas.GlobalElements.Values) 509private XmlSchemaElement AddElement(string localName, string prefix, string childURI, XmlSchema parentSchema, XmlSchemaObjectCollection addLocation, int positionWithinCollection) 516XmlSchemaElement xse = null; 517XmlSchemaElement returnedElement = xse; //this value will change to elementReference if childURI!= parentURI 614XmlSchemaElement elementReference = new XmlSchemaElement(); 649internal void InferElement(XmlSchemaElement xse, bool bCreatingNewType, XmlSchema parentSchema) 937XmlSchemaElement subelement = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema,((XmlSchemaSequence)ct.Particle).Items, -1); 946XmlSchemaElement subelement = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema,((XmlSchemaSequence)ct.Particle).Items, -1); 958XmlSchemaElement subelement = FindMatchingElement(bCreatingNewType || bCreatingNewSequence, xtr, ct, ref lastUsedSeqItem, ref bParticleChanged, parentSchema, Maxoccursflag); 989if (((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem].GetType() != typeof (XmlSchemaElement)) 991XmlSchemaElement subElement = (XmlSchemaElement) ((XmlSchemaSequence)ct.Particle).Items[lastUsedSeqItem]; 1010private XmlSchemaType GetEffectiveSchemaType(XmlSchemaElement elem, bool bCreatingNewType) { 1043internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr,XmlSchemaComplexType ct, ref int lastUsedSeqItem, ref bool bParticleChanged, XmlSchema parentSchema, bool setMaxoccurs) 1063XmlSchemaElement e = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema, xss.Items,-1); 1072XmlSchemaElement el = xsch.Items[i] as XmlSchemaElement; 1085XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema); 1091XmlSchemaElement subElement = AddElement(xtr.LocalName, xtr.Prefix, xtr.NamespaceURI, parentSchema, xsch.Items,-1); 1100XmlSchemaElement el = particle as XmlSchemaElement; 1119XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema); 1130el = particle as XmlSchemaElement; 1140((XmlSchemaElement) minOccursCandidates[i]).MinOccurs = decimal.Zero; 1151((XmlSchemaElement) minOccursCandidates[i]).MinOccurs = decimal.Zero; 1153XmlSchemaElement referencedElement = FindGlobalElement(childURI, xtr.LocalName, out parentSchema); 1165XmlSchemaElement subElement = null; 1166XmlSchemaElement actualElement = null; 1190xsc.Items.Add(CreateNewElementforChoice((XmlSchemaElement) xss.Items[i])); 1211internal void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType effectiveSchemaType, bool bCreatingNewType, XmlSchema parentSchema) 1336internal XmlSchemaElement FindGlobalElement(string namespaceURI, string localName, out XmlSchema parentSchema) 1339XmlSchemaElement xse = null; 1354internal XmlSchemaElement FindElement(XmlSchemaObjectCollection elements, string elementName) 1358XmlSchemaElement xse = elements[i] as XmlSchemaElement; 1386internal XmlSchemaElement FindElementRef(XmlSchemaObjectCollection elements, string elementName, string nsURI) 1390XmlSchemaElement xse = elements[i] as XmlSchemaElement; 2364XmlSchemaElement CreateNewElementforChoice(XmlSchemaElement copyElement) 2366XmlSchemaElement newElement = new XmlSchemaElement(); 2487internal void SetMinMaxOccurs(XmlSchemaElement el, bool setMaxOccurs)
System\Xml\Schema\IXmlSchemaInfo.cs (1)
32XmlSchemaElement SchemaElement { get; }
System\Xml\Schema\Preprocessor.cs (13)
659else if (schemaItems[i] is XmlSchemaElement) { 660XmlSchemaElement element = (XmlSchemaElement)schemaItems[i]; 689foreach (XmlSchemaElement element in includedSchema.Elements.Values) { 1065private void PreprocessElement(XmlSchemaElement element) { 1107private void PreprocessLocalElement(XmlSchemaElement element) { 1153private void PreprocessElementContent(XmlSchemaElement element) { 1584XmlSchemaElement element = (XmlSchemaElement)items[i]; 1602XmlSchemaElement element = items[i] as XmlSchemaElement; 1615XmlSchemaElement element = items[i] as XmlSchemaElement;
System\Xml\Schema\SchemaCollectionCompiler.cs (65)
39foreach (XmlSchemaElement element in this.schema.Elements.Values) { 69foreach (XmlSchemaElement element in this.schema.Elements.Values) { 96XmlSchemaElement element; 111else if ((element = item as XmlSchemaElement) != null) { 127XmlSchemaElement element; 142else if ((element = schema.Items[i] as XmlSchemaElement) != null) { 179foreach (XmlSchemaElement element in this.schema.Elements.Values) { 203foreach (XmlSchemaElement element in this.schema.Elements.Values) { 216foreach (XmlSchemaElement element in this.schema.Elements.Values) { 298private static void CleanupElement(XmlSchemaElement element) { 329if (particle is XmlSchemaElement) { 330CleanupElement((XmlSchemaElement)particle); 342SendValidationEvent(Res.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]); 345XmlSchemaElement examplar = (XmlSchemaElement)this.schema.Elements[substitutionGroup.Examplar]; 356XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 373SendValidationEvent(Res.Sch_NoExamplar, (XmlSchemaElement)substitutionGroup.Members[0]); 379XmlSchemaElement examplar = (XmlSchemaElement)this.schema.Elements[substitutionGroup.Examplar]; 382XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 857else if (particle is XmlSchemaElement) { 858return CannonicalizeElement((XmlSchemaElement)particle, substitution); 877private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element, bool substitution) { 953XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false, substitution); 1060if (baseParticle is XmlSchemaElement) { 1061if (derivedParticle is XmlSchemaElement) { 1062return IsElementFromElement((XmlSchemaElement)derivedParticle, (XmlSchemaElement)baseParticle); 1069if (derivedParticle is XmlSchemaElement) { 1070return IsElementFromAny((XmlSchemaElement)derivedParticle, (XmlSchemaAny)baseParticle); 1080if (derivedParticle is XmlSchemaElement) { 1081return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, true); 1091if (derivedParticle is XmlSchemaElement) { 1092return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, false); 1102if (derivedParticle is XmlSchemaElement) { 1103return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle, true); 1116private bool IsElementFromElement(XmlSchemaElement derivedElement, XmlSchemaElement baseElement) { 1126private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) { 1156private bool IsElementFromGroupBase(XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase, bool skipEmptableOnly) { 1284if (particle is XmlSchemaElement || particle is XmlSchemaAny) { 1792private void CompileElement(XmlSchemaElement xe) { 1804XmlSchemaElement e = (XmlSchemaElement)this.schema.Elements[xe.RefName]; 1826XmlSchemaElement examplar = (XmlSchemaElement)this.schema.Elements[xe.SubstitutionGroup]; 1946XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 1965if (e.Particle1 is XmlSchemaElement) { 1966if (e.Particle2 is XmlSchemaElement) { 1967SendValidationEvent(Res.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 1970SendValidationEvent(Res.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2).NamespaceList.ToString(), ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 1974if (e.Particle2 is XmlSchemaElement) { 1975SendValidationEvent(Res.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1).NamespaceList.ToString(), ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaAny)e.Particle1); 2063if (particle is XmlSchemaElement) { 2064XmlSchemaElement element = (XmlSchemaElement)particle; 2113if (particle is XmlSchemaElement) { 2114XmlSchemaElement localElement = (XmlSchemaElement)particle; 2120XmlSchemaElement element = (XmlSchemaElement)complexType.LocalElements[localElement.QualifiedName];
System\Xml\Schema\SchemaCollectionpreProcessor.cs (13)
416foreach (XmlSchemaElement element in includedSchema.Elements.Values) { 461else if (schema.Items[i] is XmlSchemaElement) { 462XmlSchemaElement element = (XmlSchemaElement)schema.Items[i]; 755private void PreprocessElement(XmlSchemaElement element) { 797private void PreprocessLocalElement(XmlSchemaElement element) { 843private void PreprocessElementContent(XmlSchemaElement element) { 1271XmlSchemaElement element = (XmlSchemaElement)schemaAll.Items[i]; 1290XmlSchemaElement element = choices[i] as XmlSchemaElement; 1303XmlSchemaElement element = sequences[i] as XmlSchemaElement;
System\Xml\Schema\SchemaElementDecl.cs (2)
31XmlSchemaElement schemaElement; 166internal XmlSchemaElement SchemaElement {
System\Xml\Schema\SchemaInfo.cs (2)
143internal XmlSchemaElement GetElement(XmlQualifiedName qname) { 159internal XmlSchemaElement GetType(XmlQualifiedName qname) {
System\Xml\Schema\SchemaSetCompiler.cs (67)
53foreach (XmlSchemaElement element in schema.Elements.Values) { 119foreach (XmlSchemaElement element in elements.Values) { 173foreach (XmlSchemaElement element in elements.Values) { 202foreach (XmlSchemaElement element in elements.Values) { 299private void CleanupElement(XmlSchemaElement element) { 335XmlSchemaElement element = particle as XmlSchemaElement; 350foreach (XmlSchemaElement element in this.elements.Values) { 352XmlSchemaElement headElement = this.elements[element.SubstitutionGroup] as XmlSchemaElement; 384SendValidationEvent(Res.Sch_SubstitutionCircularRef, (XmlSchemaElement)substitutionGroup.Members[0]); 387XmlSchemaElement examplar = (XmlSchemaElement)elements[substitutionGroup.Examplar]; 400XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 907foreach(XmlSchemaElement localElement in complexType.LocalElements.Values) { 950else if (particle is XmlSchemaElement) { 971private XmlSchemaParticle CannonicalizeElement(XmlSchemaElement element) { 980choice.Items.Add((XmlSchemaElement)substitutionGroup.Members[i]); 1051XmlSchemaParticle p = CannonicalizeParticle((XmlSchemaElement)all.Items[i], false); 1195if (derivedParticle is XmlSchemaElement) { //check for derived element being head of substitutionGroup 1196XmlSchemaElement derivedElem = (XmlSchemaElement)derivedParticle; 1199if (baseParticle is XmlSchemaElement) { 1200XmlSchemaElement baseElem = (XmlSchemaElement)baseParticle; 1206else if (derivedParticle is XmlSchemaElement) { 1207return IsElementFromElement((XmlSchemaElement)derivedParticle, baseElem); 1215if (derivedParticle is XmlSchemaElement) { 1216return IsElementFromAny((XmlSchemaElement)derivedParticle, (XmlSchemaAny)baseParticle); 1226if (derivedParticle is XmlSchemaElement) { 1227return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1246if (derivedParticle is XmlSchemaElement) { 1247return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase) baseParticle); 1272if (derivedParticle is XmlSchemaElement) { 1273return IsElementFromGroupBase((XmlSchemaElement)derivedParticle, (XmlSchemaGroupBase)baseParticle); 1292private bool IsElementFromElement(XmlSchemaElement derivedElement, XmlSchemaElement baseElement) { 1319private bool IsElementFromAny(XmlSchemaElement derivedElement, XmlSchemaAny baseAny) { 1412private bool IsElementFromGroupBase(XmlSchemaElement derivedElement, XmlSchemaGroupBase baseGroupBase) { 1559if (particle is XmlSchemaElement || particle is XmlSchemaAny) { 2138private void CompileElement(XmlSchemaElement xe) { 2150XmlSchemaElement e = (XmlSchemaElement)elements[xe.RefName]; 2172XmlSchemaElement examplar = (XmlSchemaElement)elements[xe.SubstitutionGroup]; 2301XmlSchemaElement localElement = (XmlSchemaElement)all.Items[i]; 2320if (e.Particle1 is XmlSchemaElement) { 2321if (e.Particle2 is XmlSchemaElement) { 2322SendValidationEvent(Res.Sch_NonDeterministic, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2325SendValidationEvent(Res.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle2).ResolvedNamespace, ((XmlSchemaElement)e.Particle1).QualifiedName.ToString(), (XmlSchemaAny)e.Particle2); 2329if (e.Particle2 is XmlSchemaElement) { 2330SendValidationEvent(Res.Sch_NonDeterministicAnyEx, ((XmlSchemaAny)e.Particle1).ResolvedNamespace, ((XmlSchemaElement)e.Particle2).QualifiedName.ToString(), (XmlSchemaElement)e.Particle2); 2419if (particle is XmlSchemaElement) { 2420XmlSchemaElement element = (XmlSchemaElement)particle; 2470if (particle is XmlSchemaElement) { 2471XmlSchemaElement localElement = (XmlSchemaElement)particle; 2477XmlSchemaElement element = (XmlSchemaElement)complexType.LocalElements[localElement.QualifiedName]; 2492if (particle is XmlSchemaElement) { 2493XmlSchemaElement localElement = (XmlSchemaElement)particle;
System\Xml\Schema\XmlSchema.cs (3)
339XmlElement("element", typeof(XmlSchemaElement)), 555XmlSchemaElement element; 561else if ((element = items[i] as XmlSchemaElement) != null) {
System\Xml\Schema\XmlSchemaAll.cs (1)
24[XmlElement("element", typeof(XmlSchemaElement))]
System\Xml\Schema\XmlSchemaChoice.cs (1)
24[XmlElement("element", typeof(XmlSchemaElement)),
System\Xml\Schema\XmlSchemaComplexType.cs (7)
485XmlSchemaElement oldElem = particle as XmlSchemaElement; 493XmlSchemaElement newElem = (XmlSchemaElement)oldElem.Clone(parentSchema); 506private static XmlSchemaForm GetResolvedElementForm(XmlSchema parentSchema, XmlSchemaElement element) { 526XmlSchemaElement elem = p as XmlSchemaElement;
System\Xml\Schema\XmlSchemaElement.cs (2)
320XmlSchemaElement newElem = (XmlSchemaElement)MemberwiseClone();
System\Xml\Schema\XmlSchemaInfo.cs (2)
17XmlSchemaElement schemaElement; 83public XmlSchemaElement SchemaElement {
System\Xml\Schema\XmlSchemaParticle.cs (2)
133XmlSchemaElement elem = this as XmlSchemaElement;
System\Xml\Schema\XmlSchemaSequence.cs (1)
23[XmlElement("element", typeof(XmlSchemaElement)),
System\Xml\Schema\XmlSchemaSet.cs (14)
969List<XmlSchemaElement> newMembers = null; 970XmlSchemaElement headElement = (XmlSchemaElement)elements[substitutionGroup.Examplar]; 975XmlSchemaElement element = (XmlSchemaElement)substitutionGroup.Members[i]; 982XmlSchemaElement element1 = (XmlSchemaElement)g.Members[j]; 985newMembers = new List<XmlSchemaElement>(); 1099foreach (XmlSchemaElement element in otherSet.GlobalElements.Values) { 1132foreach (XmlSchemaElement elementToRemove in otherSet.GlobalElements.Values) { 1276foreach (XmlSchemaElement elementToRemove in schema.Elements.Values) { 1277XmlSchemaElement elem = (XmlSchemaElement)elements[elementToRemove.QualifiedName]; 1311else if (item is XmlSchemaElement) {
System\Xml\Schema\XmlSchemaValidator.cs (20)
351if (!(partialValidationType is XmlSchemaElement || partialValidationType is XmlSchemaAttribute || partialValidationType is XmlSchemaType)) { 414XmlSchemaElement localSchemaElement = null; 836XmlSchemaElement element = partialValidationType as XmlSchemaElement; 845foreach(XmlSchemaElement element in elements) { //Check for substitutions 1015XmlSchemaElement localSchemaElement = null; 1121XmlSchemaElement headElement = null; 1161XmlSchemaElement matchedElem = particle as XmlSchemaElement; 1186private XmlSchemaElement GetSubstitutionGroupHead(XmlQualifiedName member) { 1187XmlSchemaElement memberElem = compiledSchemaInfo.GetElement(member); 1191XmlSchemaElement headElem = compiledSchemaInfo.GetElement(head); 1347XmlSchemaElement element = particle as XmlSchemaElement; 1358if (partialValidationType is XmlSchemaElement) { 1359XmlSchemaElement element = (XmlSchemaElement)partialValidationType; 1773private XmlSchemaElement GetSchemaElement() { 1779XmlSchemaElement xsiElement = (XmlSchemaElement)beforeXsiDecl.SchemaElement.Clone(null);
System\Xml\Schema\XsdBuilder.cs (2)
636private XmlSchemaElement element; 953this.element = (XmlSchemaElement)container;
System\Xml\Schema\XsdValidator.cs (2)
309XmlSchemaElement element = particle as XmlSchemaElement;
System\Xml\Serialization\ImportContext.cs (8)
378else if (t == typeof(XmlSchemaElement)) { 379XmlSchemaElement el = (XmlSchemaElement)item; 382XmlSchemaElement head = (XmlSchemaElement)schemas.Find(el.SubstitutionGroup, typeof(XmlSchemaElement), false); 387el = (XmlSchemaElement)schemas.Find(el.RefName, typeof(XmlSchemaElement), false);
System\Xml\Serialization\Mappings.cs (4)
1074internal void CheckDuplicateElement(XmlSchemaElement element, string elementNs) { 1093foreach (XmlSchemaElement e in elements.Values) { 1103bool Match(XmlSchemaElement e1, XmlSchemaElement e2) {
System\Xml\Serialization\SchemaObjectWriter.cs (7)
70else if (o is XmlSchemaElement) { 71return ((XmlSchemaElement)o).QualifiedName; 290else if (t == typeof(XmlSchemaElement)) { 291Write46_XmlSchemaElement((XmlSchemaElement)o); 807void Write46_XmlSchemaElement(XmlSchemaElement o) { 995else if (ai is XmlSchemaElement) { 996Write46_XmlSchemaElement((XmlSchemaElement)ai);
System\Xml\Serialization\SoapSchemaExporter.cs (1)
257XmlSchemaElement element = new XmlSchemaElement();
System\Xml\Serialization\SoapSchemaImporter.cs (12)
129XmlSchemaElement element = new XmlSchemaElement(); 160ElementAccessor ImportElement(XmlSchemaElement element, string ns) { 181TypeMapping ImportElementType(XmlSchemaElement element, string ns) { 272XmlSchemaElement element = (XmlSchemaElement)type.Parent; 372else if (item is XmlSchemaElement) 373ImportElementMember((XmlSchemaElement)item, members, ns); 381ElementAccessor ImportArray(XmlSchemaElement element, string ns) { 476if (group.Items.Count != 1 || !(group.Items[0] is XmlSchemaElement)) 478XmlSchemaElement itemElement = (XmlSchemaElement)group.Items[0]; 490void ImportElementMember(XmlSchemaElement element, CodeIdentifiers members, string ns) {
System\Xml\Serialization\XmlSchemaExporter.cs (14)
227XmlSchemaElement ExportElement(ElementAccessor accessor) { 233XmlSchemaElement element = (XmlSchemaElement)elements[accessor]; 279if (item is XmlSchemaElement) { 280XmlSchemaElement e = (XmlSchemaElement)item; 356void ExportElementMapping(XmlSchemaElement element, Mapping mapping, string ns, bool isAny) { 393XmlSchemaType ExportSpecialMapping(SpecialMapping mapping, string ns, bool isAny, XmlSchemaElement element) { 487XmlSchemaElement schemaElement = new XmlSchemaElement(); 541void ExportArrayMapping(ArrayMapping mapping, string ns, XmlSchemaElement element) { 729XmlSchemaElement element = (XmlSchemaElement)elements[accessor]; 759XmlSchemaElement refElement = new XmlSchemaElement(); 857XmlQualifiedName ExportStructMapping(StructMapping mapping, string ns, XmlSchemaElement element) {
System\Xml\Serialization\XmlSchemaImporter.cs (39)
188XmlSchemaElement element = new XmlSchemaElement(); 258XmlSchemaElement element = new XmlSchemaElement(); 275XmlSchemaElement element = FindElement(name); 287ElementAccessor ImportElement(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns, bool topLevelElement) { 337TypeMapping ImportElementType(XmlSchemaElement element, string identifier, Type desiredMappingType, Type baseType, string ns) { 919else if (item is XmlSchemaElement) { 920XmlSchemaElement element = (XmlSchemaElement)item; 921XmlSchemaElement headElement = GetTopLevelElement(element); 923XmlSchemaElement[] elements = GetEquivalentElements(headElement); 993else if (item is XmlSchemaElement) 994ImportElementMember((XmlSchemaElement)item, identifier, members, membersScope, elementsScope, ns, groupRepeats, ref needExplicitOrder, allowDuplicates, allowUnboundedElements); 1006XmlSchemaElement GetTopLevelElement(XmlSchemaElement element) { 1012XmlSchemaElement[] GetEquivalentElements(XmlSchemaElement element) { 1018if (item is XmlSchemaElement) { 1019XmlSchemaElement equivalentElement = (XmlSchemaElement)item; 1029return (XmlSchemaElement[])equivalentElements.ToArray(typeof(XmlSchemaElement)); 1032bool ImportSubstitutionGroupMember(XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, string ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates) { 1033XmlSchemaElement[] elements = GetEquivalentElements(element); 1163ElementAccessor ImportArray(XmlSchemaElement element, string identifier, string ns, bool repeats) { 1217if (item.Items.Count != 1 || !(item.Items[0] is XmlSchemaElement)) return null; 1218XmlSchemaElement itemElement = (XmlSchemaElement)item.Items[0]; 1247bool IsCyclicReferencedType(XmlSchemaElement element, List<string> identifiers) 1251XmlSchemaElement refElement = FindElement(element.RefName); 1266if ((items.Particle is XmlSchemaSequence || items.Particle is XmlSchemaAll) && items.Particle.Items.Count == 1 && items.Particle.Items[0] is XmlSchemaElement) 1268XmlSchemaElement innerRefElement = (XmlSchemaElement)items.Particle.Items[0]; 1321void ImportElementMember(XmlSchemaElement element, string identifier, CodeIdentifiers members, CodeIdentifiers membersScope, INameScope elementsScope, string ns, bool repeats, ref bool needExplicitOrder, bool allowDuplicates, bool allowUnboundedElements) { 1323XmlSchemaElement headElement = GetTopLevelElement(element); 1784XmlSchemaElement FindElement(XmlQualifiedName name) { 1785XmlSchemaElement element = (XmlSchemaElement)Schemas.Find(name, typeof(XmlSchemaElement)); 1799XmlSchemaForm ElementForm(string ns, XmlSchemaElement element) {
System\Xml\Serialization\XmlSchemas.cs (10)
302else if (type == typeof(XmlSchemaElement)) { 351if (o is XmlSchemaElement) { 352XmlSchemaElement e = (XmlSchemaElement)o; 464else if (o is XmlSchemaElement) { 465return ((XmlSchemaElement)o).Name; 515else if (o is XmlSchemaElement) { 516XmlSchemaElement e = ((XmlSchemaElement)o); 712XmlSchemaElement element = new XmlSchemaElement();
System\Xml\XPath\XPathNavigator.cs (2)
874XmlSchemaElement schemaElement = null; 931private XmlReader GetValidatingReader( XmlReader reader, XmlSchemaSet schemas, ValidationEventHandler validationEvent, XmlSchemaType schemaType, XmlSchemaElement schemaElement, XmlSchemaAttribute schemaAttribute ) {
System\Xml\XPath\XPathNavigatorReader.cs (1)
987public virtual XmlSchemaElement SchemaElement { get { return IsReading ? this.schemaInfo.SchemaElement : null; } }
System.Xml.Linq (5)
System\Xml\Linq\XNodeValidator.cs (5)
115string GetDefaultValue(XmlSchemaElement se) { 118se = schemas.GlobalElements[name] as XmlSchemaElement; 343XmlSchemaElement schemaElement = si.SchemaElement; 415/// <param name="partialValidationType">An <see cref="XmlSchemaElement"/> or 430/// <param name="partialValidationType">An <see cref="XmlSchemaElement"/> or