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