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