13 instantiations of XmlSchema
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (2)
359
xs = new
XmlSchema
();
503
XmlSchema xs = new
XmlSchema
();
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (1)
88
_schema = new
XmlSchema
();
FrameworkFork\Microsoft.Xml\Xml\schema\ParserAsync.cs (1)
53
_schema = new
XmlSchema
();
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (1)
443
XmlSchema tempSchema = new
XmlSchema
();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (2)
581
XmlSchema that = new
XmlSchema
();
600
XmlSchema that = new
XmlSchema
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (1)
119
schema = new
XmlSchema
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
295
XmlSchema schema = new
XmlSchema
();
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (1)
860
XmlSchema schema = new
XmlSchema
();
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (1)
141
XmlSchema xsdSchema = new
XmlSchema
();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (1)
85
XmlSchema schema = new
XmlSchema
();
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (1)
8492
o = new Microsoft.Xml.Schema.
XmlSchema
();
562 references to XmlSchema
dotnet-svcutil-lib (562)
CodeDomFixup\ArrayOfXElementTypeHelper.cs (1)
194
getSchemaMethod.ReturnType = new CodeTypeReference(typeof(Microsoft.Xml.Schema.
XmlSchema
));
CodeSerializer.cs (3)
167
var schemaDocuments = metadataSections.Where(s => s.Metadata is
XmlSchema
).Cast<
XmlSchema
>();
169
foreach (
XmlSchema
schema in schemaDocuments)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReader.cs (1)
2229
XmlSchema
schema = _inlineSchemaParser.XmlSchema;
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (1)
641
XmlSchema
schema = _inlineSchemaParser.XmlSchema;
FrameworkFork\Microsoft.Xml\Xml\schema\BaseProcessor.cs (2)
89
XmlSchema
schemaForXmlNS = Preprocessor.GetBuildInSchema();
112
XmlSchema
schemaForXmlNS = Preprocessor.GetBuildInSchema();
FrameworkFork\Microsoft.Xml\Xml\schema\ChameleonKey.cs (2)
25
internal
XmlSchema
originalSchema;
34
public ChameleonKey(string ns,
XmlSchema
originalSchema)
FrameworkFork\Microsoft.Xml\Xml\schema\Inference\infer.cs (41)
27
internal static XmlQualifiedName ST_boolean = new XmlQualifiedName("boolean",
XmlSchema
.Namespace);
28
internal static XmlQualifiedName ST_byte = new XmlQualifiedName("byte",
XmlSchema
.Namespace);
29
internal static XmlQualifiedName ST_unsignedByte = new XmlQualifiedName("unsignedByte",
XmlSchema
.Namespace);
30
internal static XmlQualifiedName ST_short = new XmlQualifiedName("short",
XmlSchema
.Namespace);
31
internal static XmlQualifiedName ST_unsignedShort = new XmlQualifiedName("unsignedShort",
XmlSchema
.Namespace);
32
internal static XmlQualifiedName ST_int = new XmlQualifiedName("int",
XmlSchema
.Namespace);
33
internal static XmlQualifiedName ST_unsignedInt = new XmlQualifiedName("unsignedInt",
XmlSchema
.Namespace);
34
internal static XmlQualifiedName ST_long = new XmlQualifiedName("long",
XmlSchema
.Namespace);
35
internal static XmlQualifiedName ST_unsignedLong = new XmlQualifiedName("unsignedLong",
XmlSchema
.Namespace);
36
internal static XmlQualifiedName ST_integer = new XmlQualifiedName("integer",
XmlSchema
.Namespace);
37
internal static XmlQualifiedName ST_decimal = new XmlQualifiedName("decimal",
XmlSchema
.Namespace);
38
internal static XmlQualifiedName ST_float = new XmlQualifiedName("float",
XmlSchema
.Namespace);
39
internal static XmlQualifiedName ST_double = new XmlQualifiedName("double",
XmlSchema
.Namespace);
40
internal static XmlQualifiedName ST_duration = new XmlQualifiedName("duration",
XmlSchema
.Namespace);
41
internal static XmlQualifiedName ST_dateTime = new XmlQualifiedName("dateTime",
XmlSchema
.Namespace);
42
internal static XmlQualifiedName ST_time = new XmlQualifiedName("time",
XmlSchema
.Namespace);
43
internal static XmlQualifiedName ST_date = new XmlQualifiedName("date",
XmlSchema
.Namespace);
44
internal static XmlQualifiedName ST_gYearMonth = new XmlQualifiedName("gYearMonth",
XmlSchema
.Namespace);
45
internal static XmlQualifiedName ST_string = new XmlQualifiedName("string",
XmlSchema
.Namespace);
46
internal static XmlQualifiedName ST_anySimpleType = new XmlQualifiedName("anySimpleType",
XmlSchema
.Namespace);
113
private
XmlSchema
_rootSchema = null; //(XmlSchema) xsc[TargetNamespace];
177
_namespaceManager.AddNamespace("xs",
XmlSchema
.Namespace);
216
if (_xtr.NamespaceURI ==
XmlSchema
.Namespace)
225
_rootSchema = elem.Parent as
XmlSchema
;
288
private XmlSchemaAttribute AddAttribute(string localName, string prefix, string childURI, string attrValue, bool bCreatingNewType,
XmlSchema
parentSchema, XmlSchemaObjectCollection addLocation, XmlSchemaObjectTable compiledAttributes)
290
if (childURI ==
XmlSchema
.Namespace)
298
XmlSchema
xs = null;
374
xs = col[0] as
XmlSchema
;
500
private
XmlSchema
CreateXmlSchema(string targetNS)
503
XmlSchema
xs = new XmlSchema();
511
private XmlSchemaElement AddElement(string localName, string prefix, string childURI,
XmlSchema
parentSchema, XmlSchemaObjectCollection addLocation, int positionWithinCollection)
513
if (childURI ==
XmlSchema
.Namespace)
520
XmlSchema
xs = null;
545
xs = col[0] as
XmlSchema
;
650
internal void InferElement(XmlSchemaElement xse, bool bCreatingNewType,
XmlSchema
parentSchema)
1053
internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr, XmlSchemaComplexType ct, ref int lastUsedSeqItem, ref bool bParticleChanged,
XmlSchema
parentSchema, bool setMaxoccurs)
1055
if (xtr.NamespaceURI ==
XmlSchema
.Namespace)
1220
internal void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType effectiveSchemaType, bool bCreatingNewType,
XmlSchema
parentSchema)
1228
if (_xtr.NamespaceURI ==
XmlSchema
.Namespace)
1350
internal XmlSchemaElement FindGlobalElement(string namespaceURI, string localName, out
XmlSchema
parentSchema)
1355
foreach (
XmlSchema
schema in col)
FrameworkFork\Microsoft.Xml\Xml\schema\Parser.cs (2)
28
private
XmlSchema
_schema;
153
public
XmlSchema
XmlSchema
FrameworkFork\Microsoft.Xml\Xml\schema\Preprocessor.cs (46)
30
internal
XmlSchema
schemaToUpdate;
32
public RedefineEntry(XmlSchemaRedefine external,
XmlSchema
schema)
45
private
XmlSchema
_rootSchema;
46
private
XmlSchema
_currentSchema;
65
private
XmlSchema
_rootSchemaForRedefine = null;
68
private static
XmlSchema
s_builtInSchemaForXmlNS;
92
public bool Execute(
XmlSchema
schema, string targetNamespace, bool loadExternals)
131
XmlSchema
listSchema;
137
listSchema = (
XmlSchema
)_lockList.GetByIndex(schemaIndex);
164
listSchema = (
XmlSchema
)_lockList.GetByIndex(schemaIndex);
180
private void Cleanup(
XmlSchema
schema)
250
internal
XmlSchema
RootSchema
258
private void BuildSchemaList(
XmlSchema
schema)
279
private void LoadExternals(
XmlSchema
schema)
291
XmlSchema
includedSchema = include.Schema;
372
if (typeof(
XmlSchema
).IsAssignableFrom(returnType))
374
include.Schema = (
XmlSchema
)obj;
433
include.Schema = (
XmlSchema
)_schemaLocations[ruri]; //Set schema object even for duplicates
439
internal static
XmlSchema
GetBuildInSchema()
443
XmlSchema
tempSchema = new XmlSchema();
488
Interlocked.CompareExchange<
XmlSchema
>(ref s_builtInSchemaForXmlNS, tempSchema, null);
493
private void BuildRefNamespaces(
XmlSchema
schema)
542
private void Preprocess(
XmlSchema
schema, string targetNamespace, ArrayList imports)
544
XmlSchema
prevRootSchemaForRedefine = null;
585
XmlSchema
externalSchema = include.Schema;
635
XmlSchema
includedSchema = include.Schema;
685
XmlSchema
includedSchema = external.Schema;
817
private void CopyIncludedComponents(
XmlSchema
includedSchema,
XmlSchema
schema)
853
XmlSchema
originalSchema = redefine.Schema;
866
XmlSchema
schemaToUpdate = redefineEntry.schemaToUpdate;
888
XmlSchema
parentSchema = GetParentSchema(originalGroup);
914
XmlSchema
parentSchema = GetParentSchema(originalAttrGroup);
940
XmlSchema
parentSchema = GetParentSchema(originalType);
970
XmlSchema
parentSchema = GetParentSchema(originalType);
990
private void GetIncludedSet(
XmlSchema
schema, ArrayList includesList)
1010
internal static
XmlSchema
GetParentSchema(XmlSchemaObject currentSchemaObject)
1012
XmlSchema
parentSchema = null;
1013
Debug.Assert((currentSchemaObject as
XmlSchema
) == null); //The current object should not be schema
1017
parentSchema = currentSchemaObject as
XmlSchema
;
1022
private void SetSchemaDefaults(
XmlSchema
schema)
2155
private Uri ResolveSchemaLocationUri(
XmlSchema
enclosingSchema, string location)
2169
private
XmlSchema
GetChameleonSchema(string targetNamespace,
XmlSchema
schema)
2172
XmlSchema
chameleonSchema = (
XmlSchema
)_chameleonSchemas[cKey]; //Need not clone if a schema for that namespace already exists
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionCompiler.cs (3)
18
private
XmlSchema
_schema;
25
public bool Execute(
XmlSchema
schema, SchemaInfo schemaInfo, bool compileContentModel)
91
internal static void Cleanup(
XmlSchema
schema)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaCollectionPreprocessor.cs (8)
27
private
XmlSchema
_schema;
54
public bool Execute(
XmlSchema
schema, string targetNamespace, bool loadExternals, XmlSchemaCollection xsc)
86
private void Cleanup(
XmlSchema
schema)
136
private void LoadExternals(
XmlSchema
schema, XmlSchemaCollection xsc)
266
private void BuildRefNamespaces(
XmlSchema
schema)
292
private void Preprocess(
XmlSchema
schema, string targetNamespace, Compositor compositor)
504
XmlSchema
includedSchema = include.Schema;
1809
private Uri ResolveSchemaLocationUri(
XmlSchema
enclosingSchema, string location)
FrameworkFork\Microsoft.Xml\Xml\schema\SchemaSetCompiler.cs (8)
30
private
XmlSchema
_schemaForSchema;
32
public Compiler(XmlNameTable nameTable, ValidationEventHandler eventHandler,
XmlSchema
schemaForSchema, XmlSchemaCompilationSettings compilationSettings) : base(nameTable, null, eventHandler, compilationSettings)
51
internal void Prepare(
XmlSchema
schema, bool cleanup)
134
foreach (
XmlSchema
schema in _schemasToCompile.Values)
169
XmlSchema
currentSchema;
174
currentSchema = (
XmlSchema
)schemas.GetByIndex(schemaIndex);
654
XmlSchema
parentSchema = Preprocessor.GetParentSchema(simpleType);
655
if (parentSchema.TargetNamespace !=
XmlSchema
.Namespace)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (11)
21
[XmlRoot("schema", Namespace =
XmlSchema
.Namespace)]
81
public static
XmlSchema
Read(TextReader reader, ValidationEventHandler validationEventHandler)
90
public static
XmlSchema
Read(Stream stream, ValidationEventHandler validationEventHandler)
99
public static
XmlSchema
Read(XmlReader reader, ValidationEventHandler validationEventHandler)
177
XmlSerializer serializer = new XmlSerializer(typeof(
XmlSchema
));
213
ns.Add("xs",
XmlSchema
.Namespace);
579
internal new
XmlSchema
Clone()
581
XmlSchema
that = new XmlSchema();
598
internal
XmlSchema
DeepClone()
600
XmlSchema
that = new XmlSchema();
700
internal void GetExternalSchemasList(IList extList,
XmlSchema
schema)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaCollection.cs (19)
109
public
XmlSchema
Add(string ns, string uri)
116
XmlSchema
schema = null;
130
public
XmlSchema
Add(String ns, XmlReader reader)
141
public
XmlSchema
Add(String ns, XmlReader reader, XmlResolver resolver)
177
public
XmlSchema
Add(
XmlSchema
schema)
183
public
XmlSchema
Add(
XmlSchema
schema, XmlResolver resolver)
217
public
XmlSchema
this[string ns]
230
public bool Contains(
XmlSchema
schema)
279
public void CopyTo(
XmlSchema
[] array, int index)
287
XmlSchema
schema = e.Current;
342
internal
XmlSchema
Add(string ns, SchemaInfo schemaInfo,
XmlSchema
schema, bool compile)
347
private
XmlSchema
Add(string ns, SchemaInfo schemaInfo,
XmlSchema
schema, bool compile, XmlResolver resolver)
429
private
XmlSchema
_schema;
443
internal
XmlSchema
Schema
498
public
XmlSchema
Current
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaComplexType.cs (5)
412
internal XmlSchemaObject Clone(
XmlSchema
parentSchema)
531
private static XmlSchemaObjectCollection CloneGroupBaseParticles(XmlSchemaObjectCollection groupBaseParticles,
XmlSchema
parentSchema)
543
internal static XmlSchemaParticle CloneParticle(XmlSchemaParticle particle,
XmlSchema
parentSchema)
585
private static XmlSchemaForm GetResolvedElementForm(
XmlSchema
parentSchema, XmlSchemaElement element)
597
internal static bool HasParticleRef(XmlSchemaParticle particle,
XmlSchema
parentSchema)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaElement.cs (1)
362
internal XmlSchemaObject Clone(
XmlSchema
parentSchema)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaExternal.cs (2)
20
private
XmlSchema
_schema;
35
public
XmlSchema
Schema
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaGroup.cs (1)
95
internal XmlSchemaObject Clone(
XmlSchema
parentSchema)
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaSet.cs (65)
51
private
XmlSchema
_schemaForSchema; //Only one schema for schema per set
312
public
XmlSchema
Add(String targetNamespace, String schemaUri)
322
XmlSchema
schema = null;
361
public
XmlSchema
Add(String targetNamespace, XmlReader schemaDocument)
373
XmlSchema
schema = null;
430
XmlSchema
currentSchema;
440
foreach (
XmlSchema
schema in schemas.SortedSchemas.Values)
461
foreach (
XmlSchema
schema in schemas.SortedSchemas.Values)
483
public
XmlSchema
Add(
XmlSchema
schema)
500
public
XmlSchema
Remove(
XmlSchema
schema)
506
public bool RemoveRecursive(
XmlSchema
schemaToRemove)
537
XmlSchema
mainSchema;
540
mainSchema = (
XmlSchema
)_schemas.GetByIndex(i);
552
mainSchema = (
XmlSchema
)needToCheckSchemaList[i];
570
XmlSchema
impSchema = (
XmlSchema
)schemaToRemove.ImportedSchemas[i];
590
public bool Contains(
XmlSchema
schema)
632
XmlSchema
currentSchema;
633
XmlSchema
xmlNSSchema = Preprocessor.GetBuildInSchema();
636
currentSchema = (
XmlSchema
)_schemas.GetByIndex(schemaIndex);
678
XmlSchema
currentSchema;
685
currentSchema = (
XmlSchema
)_schemas.GetByIndex(i);
704
public
XmlSchema
Reprocess(
XmlSchema
schema)
719
XmlSchema
originalSchema = schema;
771
XmlSchema
s = (
XmlSchema
)schema.ImportedSchemas[i];
799
public void CopyTo(
XmlSchema
[] schemas, int index)
824
XmlSchema
currentSchema;
831
currentSchema = (
XmlSchema
)_schemas.GetByIndex(i);
842
private
XmlSchema
Add(string targetNamespace,
XmlSchema
schema)
962
XmlSchema
schema;
982
XmlSchema
impSchema = (
XmlSchema
)schema.ImportedSchemas[i];
998
internal
XmlSchema
FindSchemaByNSAndUrl(Uri schemaUri, string ns, DictionaryEntry[] locationsTable)
1004
XmlSchema
schema = null;
1007
schema = (
XmlSchema
)_schemaLocations[schemaUri];
1015
schema = (
XmlSchema
)locationsTable[i].Value;
1035
schema = (
XmlSchema
)_chameleonSchemas[cKey]; //Need not clone if a schema for that namespace already exists
1061
private void AddSchemaToSet(
XmlSchema
schema)
1085
XmlSchema
s = (
XmlSchema
)schema.ImportedSchemas[i];
1174
internal
XmlSchema
Remove(
XmlSchema
schema, bool forceCompile)
1228
internal bool PreprocessSchema(ref
XmlSchema
schema, string targetNamespace)
1240
internal
XmlSchema
ParseSchema(string targetNamespace, XmlReader reader)
1261
XmlSchema
currentSchema;
1270
currentSchema = (
XmlSchema
)copyFromList.GetByIndex(i);
1325
foreach (
XmlSchema
schemaToRemove in copyFromList.Values)
1334
if (!existingSchemas.Contains((
XmlSchema
)elementToRemove.Parent))
1341
if (!existingSchemas.Contains((
XmlSchema
)attributeToRemove.Parent))
1348
if (!existingSchemas.Contains((
XmlSchema
)schemaTypeToRemove.Parent))
1397
internal bool IsSchemaLoaded(Uri schemaUri, string targetNamespace, out
XmlSchema
schema)
1412
XmlSchema
chameleonSchema = FindSchemaByNSAndUrl(schemaUri, targetNamespace, null);
1438
internal bool GetSchemaByUri(Uri schemaUri, out
XmlSchema
schema)
1445
schema = (
XmlSchema
)_schemaLocations[schemaUri];
1453
internal string GetTargetNamespace(
XmlSchema
schema)
1476
private void RemoveSchemaFromCaches(
XmlSchema
schema)
1479
List<
XmlSchema
> reprocessList = new List<
XmlSchema
>();
1511
private void RemoveSchemaFromGlobalTables(
XmlSchema
schema)
1573
XmlSchema
schemaForXmlNS = Preprocessor.GetBuildInSchema();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchemaValidator.cs (3)
324
public void AddSchema(
XmlSchema
schema)
363
XmlSchema
impSchema = (
XmlSchema
)schema.ImportedSchemas[i];
FrameworkFork\Microsoft.Xml\Xml\schema\XsdBuilder.cs (2)
645
private
XmlSchema
_schema;
689
XmlSchema
schema,
FrameworkFork\Microsoft.Xml\Xml\schema\xsdvalidator.cs (1)
147
XmlSchema
schema = _inlineSchemaParser.XmlSchema;
FrameworkFork\Microsoft.Xml\Xml\Serialization\ImportContext.cs (7)
283
foreach (
XmlSchema
s in schemas)
304
if (o.Parent is
XmlSchema
)
306
string ns = ((
XmlSchema
)o.Parent).TargetNamespace;
307
if (ns ==
XmlSchema
.Namespace)
317
if (item.Parent is
XmlSchema
)
429
if (baseType == null && !baseName.IsEmpty && baseName.Namespace !=
XmlSchema
.Namespace)
453
if (el.SubstitutionGroup.Namespace !=
XmlSchema
.Namespace)
FrameworkFork\Microsoft.Xml\Xml\Serialization\IXmlSerializable.cs (1)
20
XmlSchema
GetSchema();
FrameworkFork\Microsoft.Xml\Xml\Serialization\Mappings.cs (7)
1108
private
XmlSchema
_schema;
1182
foreach (
XmlSchema
s in _schemas.Schemas())
1239
internal
XmlSchema
Schema
1285
if (element.Parent == null || !(element.Parent is
XmlSchema
))
1385
if (_xsiType.Namespace !=
XmlSchema
.Namespace)
1397
XmlSchema
s = (
XmlSchema
)srcSchemas[0];
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaImporter.cs (3)
42
if (!schemas.Contains(
XmlSchema
.Namespace))
188
mapping.Namespace =
XmlSchema
.Namespace;
214
if (name.Namespace ==
XmlSchema
.Namespace)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SchemaObjectWriter.cs (4)
143
while (o != null && !(o is
XmlSchema
))
147
return o == null ? "" : ((
XmlSchema
)o).TargetNamespace;
306
if (o.Parent != null && !(o.Parent is
XmlSchema
))
985
if (o.Parent != null && !(o.Parent is
XmlSchema
))
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapReflectionImporter.cs (8)
204
TypeDesc td = _typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
207
throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXsdDataType, dataType, "SoapElementAttribute.DataType", new XmlQualifiedName(dataType,
XmlSchema
.Namespace).ToString()));
240
TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
265
mapping.Namespace =
XmlSchema
.Namespace;
506
itemTypeNamespace = itemTypeMapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
514
itemTypeNamespace =
XmlSchema
.Namespace;
564
mapping.TypeDesc = _typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
580
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaExporter.cs (10)
100
XmlSchema
schema = _schemas[newNamespace];
116
XmlSchema
schema = _schemas[ns];
137
XmlSchema
schema = _schemas[referencingNs];
149
XmlSchema
schema = _schemas[ns];
157
private XmlSchemaImport FindImport(
XmlSchema
schema, string ns)
217
return new XmlQualifiedName(mapping.TypeDesc.DataType.Name,
XmlSchema
.Namespace);
250
qname = new XmlQualifiedName(Soap.UrType,
XmlSchema
.Namespace);
264
if (qname.Namespace !=
XmlSchema
.Namespace)
314
return new XmlQualifiedName(Soap.UrType,
XmlSchema
.Namespace);
418
restriction.BaseTypeName = new XmlQualifiedName("string",
XmlSchema
.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (3)
229
foreach (
XmlSchema
schema in Schemas)
250
if (name.Name == Soap.UrType && name.Namespace ==
XmlSchema
.Namespace)
718
if (name.Namespace ==
XmlSchema
.Namespace)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (30)
559
AddNonXsdPrimitive(typeof(Guid), "guid", UrtTypes.Namespace, "Guid", new XmlQualifiedName("string",
XmlSchema
.Namespace), new XmlSchemaFacet[] { guidPattern }, TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.IgnoreDefault);
560
AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort",
XmlSchema
.Namespace), new XmlSchemaFacet[0], TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.IgnoreDefault);
615
AddSoapEncodedPrimitive(typeof(string), "normalizedString", ns, "String", new XmlQualifiedName("normalizedString",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.Reference | TypeFlags.HasDefaultConstructor);
618
AddSoapEncodedPrimitive(typeof(string), s_unsupportedTypes[i], ns, "String", new XmlQualifiedName(s_unsupportedTypes[i],
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.Reference | TypeFlags.CollapseWhitespace);
621
AddSoapEncodedPrimitive(typeof(string), "string", ns, "String", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.CanBeTextValue | TypeFlags.Reference);
622
AddSoapEncodedPrimitive(typeof(int), "int", ns, "Int32", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
623
AddSoapEncodedPrimitive(typeof(bool), "boolean", ns, "Boolean", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
624
AddSoapEncodedPrimitive(typeof(short), "short", ns, "Int16", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
625
AddSoapEncodedPrimitive(typeof(long), "long", ns, "Int64", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
626
AddSoapEncodedPrimitive(typeof(float), "float", ns, "Single", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
627
AddSoapEncodedPrimitive(typeof(double), "double", ns, "Double", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
628
AddSoapEncodedPrimitive(typeof(decimal), "decimal", ns, "Decimal", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
629
AddSoapEncodedPrimitive(typeof(DateTime), "dateTime", ns, "DateTime", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired);
630
AddSoapEncodedPrimitive(typeof(XmlQualifiedName), "QName", ns, "XmlQualifiedName", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.HasCustomFormatter | TypeFlags.HasIsEmpty | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.Reference);
631
AddSoapEncodedPrimitive(typeof(byte), "unsignedByte", ns, "Byte", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
632
AddSoapEncodedPrimitive(typeof(SByte), "byte", ns, "SByte", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
633
AddSoapEncodedPrimitive(typeof(UInt16), "unsignedShort", ns, "UInt16", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
634
AddSoapEncodedPrimitive(typeof(UInt32), "unsignedInt", ns, "UInt32", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
635
AddSoapEncodedPrimitive(typeof(UInt64), "unsignedLong", ns, "UInt64", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
638
AddSoapEncodedPrimitive(typeof(DateTime), "date", ns, "Date", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired);
639
AddSoapEncodedPrimitive(typeof(DateTime), "time", ns, "Time", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired);
641
AddSoapEncodedPrimitive(typeof(string), "Name", ns, "XmlName", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
642
AddSoapEncodedPrimitive(typeof(string), "NCName", ns, "XmlNCName", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
643
AddSoapEncodedPrimitive(typeof(string), "NMTOKEN", ns, "XmlNmToken", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
644
AddSoapEncodedPrimitive(typeof(string), "NMTOKENS", ns, "XmlNmTokens", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
646
AddSoapEncodedPrimitive(typeof(byte[]), "base64Binary", ns, "ByteArrayBase64", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference | TypeFlags.IgnoreDefault | TypeFlags.XmlEncodingNotRequired);
647
AddSoapEncodedPrimitive(typeof(byte[]), "hexBinary", ns, "ByteArrayHex", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference | TypeFlags.IgnoreDefault | TypeFlags.XmlEncodingNotRequired);
649
AddSoapEncodedPrimitive(typeof(string), "arrayCoordinate", ns, "String", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue);
650
AddSoapEncodedPrimitive(typeof(byte[]), "base64", ns, "ByteArrayBase64", new XmlQualifiedName("base64Binary",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.IgnoreDefault | TypeFlags.Reference);
661
s_primitiveNames.Add(dataTypeName,
XmlSchema
.Namespace, typeDesc);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (10)
399
TypeDesc td = _typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
402
throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType,
XmlSchema
.Namespace).ToString()));
438
TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : _typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
588
if (baseQname.Namespace ==
XmlSchema
.Namespace) return;
600
XmlSchema
s = (
XmlSchema
)srcSchemas[0];
642
mapping.Namespace =
XmlSchema
.Namespace;
1049
ns = itemTypeMapping.Namespace ==
XmlSchema
.Namespace ? defaultNs : itemTypeMapping.Namespace;
1162
mapping.TypeDesc = _typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
1178
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (20)
164
XmlSchema
schema = _schemas[ns];
210
XmlSchema
schema = _schemas[ns];
281
XmlSchema
schema = _schemas[newNamespace];
293
private
XmlSchema
AddSchema(string targetNamespace)
295
XmlSchema
schema = new XmlSchema();
309
XmlSchema
schema = _schemas[ns];
337
XmlSchema
schema = _schemas[referencingNs];
361
XmlSchema
schema = _schemas[ns];
369
private XmlSchemaImport FindImport(
XmlSchema
schema, string ns)
494
foreach (
XmlSchema
schema in serializableMapping.Schemas.Schemas())
496
if (schema.TargetNamespace !=
XmlSchema
.Namespace)
513
foreach (
XmlSchema
schema in serializableMapping.Schemas.Schemas())
515
if (schema.TargetNamespace !=
XmlSchema
.Namespace)
543
XmlSchema
existingSchema = _schemas[anyNs];
564
schemaElement.RefName = new XmlQualifiedName("schema",
XmlSchema
.Namespace);
569
AddSchemaImport(
XmlSchema
.Namespace, ns);
617
qname = new XmlQualifiedName(mapping.TypeDesc.DataType.Name,
XmlSchema
.Namespace);
776
XmlSchema
schema = _schemas[ns];
878
XmlSchema
schema = _schemas[ns];
1199
restriction.BaseTypeName = new XmlQualifiedName("string",
XmlSchema
.Namespace);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaImporter.cs (20)
81
mapping.TypeDesc = Scope.GetTypeDesc("string",
XmlSchema
.Namespace, flags);
83
mapping.Namespace =
XmlSchema
.Namespace;
224
XmlSchema
schema = xso.Parent as
XmlSchema
;
341
accessor.IsTopLevelInSchema = element.Parent is
XmlSchema
;
507
foreach (
XmlSchema
schema in Schemas)
528
if (name.Name == Soap.UrType && name.Namespace ==
XmlSchema
.Namespace)
547
if (addref && name.Namespace !=
XmlSchema
.Namespace)
1175
foreach (
XmlSchema
schema in Schemas.SchemaSet.Schemas())
1792
if (restriction.BaseTypeName.Namespace !=
XmlSchema
.Namespace)
1933
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
1949
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : ns;
1990
return new XmlQualifiedName("string",
XmlSchema
.Namespace);
2004
if (qname.Namespace !=
XmlSchema
.Namespace)
2024
if (name.Namespace ==
XmlSchema
.Namespace)
2025
return (XmlSchemaSimpleType)Scope.GetTypeDesc("string",
XmlSchema
.Namespace, flags).DataType;
2079
XmlSchema
schema = parent as
XmlSchema
;
2152
XmlSchema
schema = parent as
XmlSchema
;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (57)
29
public class XmlSchemas : CollectionBase, IEnumerable<
XmlSchema
>
38
private static volatile
XmlSchema
s_xsd;
39
private static volatile
XmlSchema
s_xml;
45
public
XmlSchema
this[int index]
47
get { return (
XmlSchema
)List[index]; }
55
public
XmlSchema
this[string ns]
63
return (
XmlSchema
)values[0];
121
internal int Add(
XmlSchema
schema, bool delay)
139
public int Add(
XmlSchema
schema)
150
public int Add(
XmlSchema
schema, Uri baseUri)
165
foreach (
XmlSchema
schema in schemas)
175
public void AddReference(
XmlSchema
schema)
184
public void Insert(int index,
XmlSchema
schema)
193
public int IndexOf(
XmlSchema
schema)
202
public bool Contains(
XmlSchema
schema)
220
public void Remove(
XmlSchema
schema)
229
public void CopyTo(
XmlSchema
[] array, int index)
240
AddName((
XmlSchema
)value);
249
RemoveName((
XmlSchema
)value);
267
RemoveName((
XmlSchema
)oldValue);
268
AddName((
XmlSchema
)newValue);
271
private void AddName(
XmlSchema
schema)
283
private void Prepare(
XmlSchema
schema)
304
private void RemoveName(
XmlSchema
schema)
321
foreach (
XmlSchema
schema in List)
329
foreach (
XmlSchema
schema in values)
380
IEnumerator<
XmlSchema
> IEnumerable<
XmlSchema
>.GetEnumerator()
385
internal static void Preprocess(
XmlSchema
schema)
407
public static bool IsDataSet(
XmlSchema
schema)
430
private void Merge(
XmlSchema
schema)
449
foreach (
XmlSchema
s in schemas)
469
private void Merge(IList originals,
XmlSchema
schema)
471
foreach (
XmlSchema
s in originals)
533
XmlSchema
destination = (
XmlSchema
)originals[0];
598
while (o.Parent != null && !(o.Parent is
XmlSchema
))
609
if (tmp is
XmlSchema
)
611
ns = ((
XmlSchema
)tmp).TargetNamespace;
670
else if (o is
XmlSchema
)
691
ns.Add("xs",
XmlSchema
.Namespace);
711
foreach (
XmlSchema
s in originals)
736
foreach (
XmlSchema
s in delayedSchemas.Values)
746
foreach (
XmlSchema
s in References.Values)
750
foreach (
XmlSchema
s in List)
759
if (!SchemaSet.Contains(
XmlSchema
.Namespace))
785
foreach (
XmlSchema
schema in SchemaSet.Schemas())
813
if (source is
XmlSchema
)
815
ns = ((
XmlSchema
)source).TargetNamespace;
827
internal static
XmlSchema
XsdSchema
833
s_xsd = CreateFakeXsdSchema(
XmlSchema
.Namespace, "schema");
839
internal static
XmlSchema
XmlSchema
845
s_xml =
XmlSchema
.Read(new StringReader(xmlSchema), null);
851
private static
XmlSchema
CreateFakeXsdSchema(string ns, string name)
860
XmlSchema
schema = new XmlSchema();
911
public class XmlSchemaEnumerator : IEnumerator<
XmlSchema
>, System.Collections.IEnumerator
936
public
XmlSchema
Current
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (5)
139
_schemaNsID = r.NameTable.Add(
XmlSchema
.Namespace);
143
_instanceNsID = r.NameTable.Add(
XmlSchema
.InstanceNamespace);
217
object ns = _r.NameTable.Add(
XmlSchema
.Namespace);
1800
typens =
XmlSchema
.Namespace;
1914
XmlQualifiedName urType = new XmlQualifiedName(_urTypeID, _r.NameTable.Add(
XmlSchema
.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriter.cs (9)
186
WriteAttribute("type",
XmlSchema
.InstanceNamespace, GetQualifiedName(name, ns));
205
string typeNs =
XmlSchema
.Namespace;
251
string typeNs =
XmlSchema
.Namespace;
350
_w.WriteStartElement(Soap.UrType,
XmlSchema
.Namespace);
380
_w.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, "true");
592
_w.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, "true");
608
_w.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, "true");
1240
typeNs =
XmlSchema
.Namespace;
1275
typeNs =
XmlSchema
.Namespace;
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (2)
133
nss.AddInternal("xsi",
XmlSchema
.InstanceNamespace);
134
nss.AddInternal("xsd",
XmlSchema
.Namespace);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (1)
1630
getSchemaMethod.ReturnType = GetCodeTypeReference(typeof(
XmlSchema
));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaHelper.cs (7)
18
internal
XmlSchema
schema;
21
internal SchemaObjectInfo(XmlSchemaType type, XmlSchemaElement element,
XmlSchema
schema, List<XmlSchemaType> knownTypes)
50
internal static
XmlSchema
GetSchemaWithType(SchemaObjectDictionary schemaInfo, XmlSchemaSet schemas, XmlQualifiedName typeName)
60
foreach (
XmlSchema
schema in currentSchemas)
80
internal static
XmlSchema
GetSchemaWithGlobalElementDeclaration(XmlSchemaElement element, XmlSchemaSet schemas)
83
foreach (
XmlSchema
schema in currentSchemas)
107
foreach (
XmlSchema
schema in currentSchemas)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (13)
53
XmlSchema
schema =
XmlSchema
.Read(reader, null);
81
XmlSchema
schema = (
XmlSchema
)schemaObj;
118
XmlSchema
schema = SchemaHelper.GetSchemaWithGlobalElementDeclaration(element, _schemaSet);
136
if (schemaSet.Contains(
XmlSchema
.Namespace))
141
XmlSchema
xsdSchema = new XmlSchema();
142
xsdSchema.TargetNamespace =
XmlSchema
.Namespace;
248
foreach (
XmlSchema
schema in schemaList)
341
XmlSchema
schema = schemaObj as
XmlSchema
;
610
XmlSchema
serializationSchema =
XmlSchema
.Read(XmlReader.Create(new StringReader(Globals.SerializationSchema)), null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractExporter.cs (13)
24
internal static
XmlSchema
CreateWsdl()
26
return
XmlSchema
.Read(new StringReader(wsdl), null);
28
internal static
XmlSchema
CreateSoap()
30
return
XmlSchema
.Read(new StringReader(soap), null);
33
internal static
XmlSchema
CreateSoapEncoding()
35
return
XmlSchema
.Read(new StringReader(soapEncoding), null);
38
internal static
XmlSchema
CreateFakeSoapEncoding()
40
return
XmlSchema
.Read(new StringReader(fakeSoapEncoding), null);
43
internal static
XmlSchema
CreateFakeXsdSchema()
45
return
XmlSchema
.Read(new StringReader(fakeXsd), null);
48
internal static
XmlSchema
CreateFakeXmlSchema()
50
return
XmlSchema
.Read(new StringReader(fakeXmlSchema), null);
55
return ns ==
XmlSchema
.Namespace || ns == "http://schemas.xmlsoap.org/wsdl/soap/" || ns == "http://schemas.xmlsoap.org/soap/encoding/";
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (33)
28
private static readonly XmlQualifiedName s_anyType = new XmlQualifiedName("anyType",
XmlSchema
.Namespace);
785
XmlSchema
schema;
789
private static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName, out
XmlSchema
containingSchema)
793
foreach (
XmlSchema
schema in GetSchema(schemaSet, elementName.Namespace))
809
if (typeName.Namespace ==
XmlSchema
.Namespace)
811
XmlSchema
schema;
815
private static XmlSchemaType FindSchemaType(XmlSchemaSet schemaSet, XmlQualifiedName typeName, out
XmlSchema
containingSchema)
822
foreach (
XmlSchema
schema in GetSchema(schemaSet, typeName.Namespace))
846
foreach (
XmlSchema
xsd in wsdl.Types.Schemas)
889
XmlSchema
wsdl = StockSchemas.CreateWsdl();
890
XmlSchema
soap = StockSchemas.CreateSoap();
891
XmlSchema
soapEncoding = StockSchemas.CreateSoapEncoding();
921
AddSchema(element.Parent as
XmlSchema
, isEncoded, isLiteral, encodedSchemas, literalSchemas, references);
927
AddSchema(type.Parent as
XmlSchema
, isEncoded, isLiteral, encodedSchemas, literalSchemas, references);
937
AddSchema(type.Parent as
XmlSchema
, isEncoded, isLiteral, encodedSchemas, literalSchemas, references);
949
foreach (
XmlSchema
schema in schemas)
954
foreach (
XmlSchema
schema in imports.Keys)
966
foreach (
XmlSchema
schema in allSchemas.Schemas())
975
foreach (
XmlSchema
schema in imports.Keys)
990
foreach (
XmlSchema
schema in references.Values)
997
foreach (
XmlSchema
schema in references.Values)
1007
XmlSchema
fakeXsdSchema = StockSchemas.CreateFakeXsdSchema();
1009
foreach (
XmlSchema
schema in schemas)
1023
private static void AddImport(
XmlSchema
schema, Hashtable imports, XmlSchemaSet allSchemas)
1033
foreach (
XmlSchema
s in allSchemas.Schemas(import.Namespace))
1041
private static void AddSchema(
XmlSchema
schema, bool isEncoded, bool isLiteral, XmlSchemas encodedSchemas, XmlSchemas literalSchemas, Hashtable references)
1246
XmlSchema
schema;
1259
if (schemaTypeName.Namespace ==
XmlSchema
.Namespace)
2073
XmlSchema
wsdl = StockSchemas.CreateWsdl();
2074
XmlSchema
soap = StockSchemas.CreateSoap();
2075
XmlSchema
soapEncoding = StockSchemas.CreateSoapEncoding();
2076
XmlSchema
fakeXsdSchema = StockSchemas.CreateFakeXsdSchema();
2077
XmlSchema
fakeXmlSchema = StockSchemas.CreateFakeXmlSchema();
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (8)
537
else if (section.Metadata is XsdNS.
XmlSchema
)
553
XsdNS.
XmlSchema
schema = (XsdNS.
XmlSchema
)section.Metadata;
577
foreach (XsdNS.
XmlSchema
schema in wsdl.Types.Schemas)
663
XsdNS.
XmlSchema
schema = XsdNS.
XmlSchema
.Read(reader, null);
665
metadataType = typeof(XsdNS.
XmlSchema
);
689
&& reader.NamespaceURI == XsdNS.
XmlSchema
.Namespace;
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataReference.cs (1)
47
Microsoft.Xml.Schema.
XmlSchema
IXmlSerializable.GetSchema()
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSection.cs (4)
40
static public string XmlSchemaDialect { get { return Microsoft.Xml.Schema.
XmlSchema
.Namespace; } }
65
[XmlElement(MetadataStrings.XmlSchema.Schema, typeof(XsdNS.
XmlSchema
), Namespace = XsdNS.
XmlSchema
.Namespace)]
107
public static MetadataSection CreateFromSchema(XsdNS.
XmlSchema
schema)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataSet.cs (4)
64
Microsoft.Xml.Schema.
XmlSchema
IXmlSerializable.GetSchema()
353
else if (o.@Metadata is global::Microsoft.Xml.Schema.
XmlSchema
)
355
((global::Microsoft.Xml.Schema.
XmlSchema
)o.@Metadata).Write(this.Writer);
574
o.@Metadata = Microsoft.Xml.Schema.
XmlSchema
.Read(this.Reader, null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\SchemaHelper.cs (10)
16
static internal void AddElementForm(XmlSchemaElement element,
XmlSchema
schema)
22
static internal void AddElementToSchema(XmlSchemaElement element,
XmlSchema
schema, XmlSchemaSet schemaSet)
39
static internal void AddImportToSchema(string ns,
XmlSchema
schema)
42
|| NamespacesEqual(ns,
XmlSchema
.Namespace)
43
|| NamespacesEqual(ns,
XmlSchema
.InstanceNamespace))
58
static internal void AddTypeToSchema(XmlSchemaType type,
XmlSchema
schema, XmlSchemaSet schemaSet)
74
static internal
XmlSchema
GetSchema(string ns, XmlSchemaSet schemaSet)
79
foreach (
XmlSchema
existingSchema in schemas)
85
XmlSchema
schema = new XmlSchema();
183
if (typeName.Namespace ==
XmlSchema
.Namespace)
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlExporter.cs (2)
136
foreach (
XmlSchema
schema in _xmlSchemas.Schemas())
922
namespaces.Add("xsd",
XmlSchema
.Namespace);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (2)
605
_xmlSchemas.Add(TryConvert<
XmlSchema
>(doc));
1572
foreach (
XmlSchema
schema in xmlSchemas.Schemas())
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (9)
54
private static
XmlSchema
s_schema = null;
55
private static
XmlSchema
s_soapEncodingSchema = null;
179
public static
XmlSchema
Schema
185
s_schema =
XmlSchema
.Read(new StringReader(Schemas.Wsdl), null);
191
internal static
XmlSchema
SoapEncodingSchema
197
s_soapEncodingSchema =
XmlSchema
.Read(new StringReader(Schemas.SoapEncoding), null);
281
ns.Add("s",
XmlSchema
.Namespace);
1548
[XmlElement("schema", typeof(
XmlSchema
), Namespace =
XmlSchema
.Namespace)]
FrameworkFork\System.Web.Services\Services\Description\ServiceDescriptionSerializer.cs (5)
2287
Write66_XmlSchema(@"schema", @"http://www.w3.org/2001/XMLSchema", ((Microsoft.Xml.Schema.
XmlSchema
)a[ia]), false, false);
2294
private void Write66_XmlSchema(string n, string ns, Microsoft.Xml.Schema.
XmlSchema
o, bool isNullable, bool needType)
2304
if (t == typeof(Microsoft.Xml.Schema.
XmlSchema
))
8476
private Microsoft.Xml.Schema.
XmlSchema
Read66_XmlSchema(bool isNullable, bool checkType)
8491
Microsoft.Xml.Schema.
XmlSchema
o;
FrameworkFork\System.Web.Services\Services\Description\SoapFormatExtensions.cs (3)
23
private static
XmlSchema
s_schema = null;
50
public static
XmlSchema
Schema
56
s_schema =
XmlSchema
.Read(new StringReader(Schemas.Soap), null);
FrameworkFork\System.Web.Services\Services\Description\WebReferenceOptions.cs (3)
26
private static
XmlSchema
s_schema = null;
105
public static
XmlSchema
Schema
111
s_schema =
XmlSchema
.Read(new StringReader(Schemas.WebRef), null);
Metadata\MetadataConstants.cs (1)
28
public const string NamespaceUri = XmlNs.Schema.
XmlSchema
.Namespace;
Metadata\MetadataDocumentLoader.cs (10)
319
var
schema = await AsyncHelper.RunAsync(() => XmlNS.Schema.
XmlSchema
.Read(reader, null), cancellationToken).ConfigureAwait(false);
330
private async Task LoadAsXmlSchemaIncludesAsync(XmlNS.Schema.
XmlSchema
schema, string uri, string basePath, CancellationToken cancellationToken)
361
foreach (XmlNS.Schema.
XmlSchema
schema in wsdl.Types.Schemas)
579
var schemas = documents.OfType<XmlNS.Schema.
XmlSchema
>();
582
foreach (
var
schema in schemas)
586
var
chameleonSchema = chameleonSchemas.FirstOrDefault(c =>
641
foreach (XmlNS.Schema.
XmlSchema
embeddedSchema in wsdl.Types.Schemas)
650
UpdateSchemaSourceUri(section.Metadata as XmlNS.Schema.
XmlSchema
, GetSourceUrl(section));
656
private void UpdateSchemaSourceUri(XmlNS.Schema.
XmlSchema
schema, string sourceUri)
Metadata\MetadataDocumentSaver.cs (6)
103
if (!AddUnresolvedSchemaRefs(doc.Metadata as XmlNS.Schema.
XmlSchema
))
114
if (AddSchema(doc.Metadata as XmlNS.Schema.
XmlSchema
) == null)
175
foreach (XmlNS.Schema.
XmlSchema
schema in wsdl.Types.Schemas)
184
private bool AddUnresolvedSchemaRefs(XmlNS.Schema.
XmlSchema
schema)
237
private MetadataFileInfo AddSchema(
XmlSchema
schema)
376
public XmlNS.Schema.
XmlSchema
Schema;
Metadata\MetadataFileInfo.cs (2)
80
internal XmlNS.Schema.
XmlSchema
Schema
84
return this.Metadata as XmlNS.Schema.
XmlSchema
;
XmlStrings.cs (1)
30
public const string NamespaceUri = Microsoft.Xml.Schema.
XmlSchema
.Namespace;