21 instantiations of XmlSchema
System.Runtime.Serialization (2)
System\Runtime\Serialization\SchemaHelper.cs (1)
144
XmlSchema schema = new
XmlSchema
();
System\Runtime\Serialization\SchemaImporter.cs (1)
142
XmlSchema xsdSchema = new
XmlSchema
();
System.ServiceModel (5)
System\ServiceModel\Description\MessageContractExporter.cs (1)
325
xsd = new
XmlSchema
();
System\ServiceModel\Description\SchemaHelper.cs (1)
84
XmlSchema schema = new
XmlSchema
();
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (2)
139
XmlSchema schema = new
XmlSchema
();
346
XmlSchema schema = new
XmlSchema
();
System\ServiceModel\Security\WSTrustServiceContract.cs (1)
2009
importedSchema = new
XmlSchema
();
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\SchemaUtility.cs (1)
549
XmlSchema schema = new
XmlSchema
();
System.Web.Services (3)
System\Web\Services\Description\HttpProtocolReflector.cs (1)
77
XmlSchema schema = new
XmlSchema
();
System\Web\Services\Description\ServiceDescriptionSerializer.cs (1)
6820
o = new global::System.Xml.Schema.
XmlSchema
();
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (1)
154
XmlSchema top = new
XmlSchema
();
System.Xml (10)
System\Xml\Schema\Inference\Infer.cs (2)
357
xs = new
XmlSchema
();
501
XmlSchema xs = new
XmlSchema
();
System\Xml\Schema\Parser.cs (1)
84
schema = new
XmlSchema
();
System\Xml\Schema\ParserAsync.cs (1)
44
schema = new
XmlSchema
();
System\Xml\Schema\Preprocessor.cs (1)
369
XmlSchema tempSchema = new
XmlSchema
();
System\Xml\Schema\XmlSchema.cs (2)
522
XmlSchema that = new
XmlSchema
();
540
XmlSchema that = new
XmlSchema
();
System\Xml\Serialization\SoapSchemaExporter.cs (1)
105
schema = new
XmlSchema
();
System\Xml\Serialization\XmlSchemaExporter.cs (1)
261
XmlSchema schema = new
XmlSchema
();
System\Xml\Serialization\XmlSchemas.cs (1)
710
XmlSchema schema = new
XmlSchema
();
936 references to XmlSchema
PresentationFramework (5)
src\Framework\System\Windows\Annotations\Annotation.cs (1)
194
public
XmlSchema
GetSchema()
src\Framework\System\Windows\Annotations\AnnotationResource.cs (1)
121
public
XmlSchema
GetSchema()
src\Framework\System\Windows\Annotations\LocatorGroup.cs (1)
99
public
XmlSchema
GetSchema()
src\Framework\System\Windows\Annotations\LocatorPartList.cs (1)
157
public
XmlSchema
GetSchema()
src\Framework\System\Windows\Data\XmlDataProvider.cs (1)
397
public
XmlSchema
GetSchema()
System.Activities (1)
System\Activities\XamlIntegration\NetDataContractXmlSerializable.cs (1)
28
public
XmlSchema
GetSchema()
System.Activities.DurableInstancing (1)
System\Activities\DurableInstancing\XmlPropertyBag.cs (1)
26
public
XmlSchema
GetSchema()
System.Data (94)
fx\src\data\System\Data\CodeGen\datacache.cs (1)
1253
CodeMemberMethod getSchemaSerializable = MethodDecl(typeof(System.Xml.Schema.
XmlSchema
), "GetSchemaSerializable", MemberAttributes.Family | MemberAttributes.Override); {
fx\src\data\System\Data\DataSet.cs (15)
1684
XmlSchema
s =
XmlSchema
.Read(reader, null);
3162
protected virtual System.Xml.Schema.
XmlSchema
GetSchemaSerializable() {
3301
any.Namespace =
XmlSchema
.Namespace;
3348
XmlSchema
IXmlSerializable.GetSchema() {
3359
return
XmlSchema
.Read(new XmlTextReader(stream), null);
3499
XmlSchema
schema = values[0] as
XmlSchema
;
3541
if ((any0.Namespace ==
XmlSchema
.Namespace) && (any1.Namespace == "urn:schemas-microsoft-com:xml-diffgram-v1"))
3578
foreach (
XmlSchema
schema in schemas.GetSchemas(ns))
3600
if (!(schema.RefName.Name == "schema" && schema.RefName.Namespace ==
XmlSchema
.Namespace)) return null;
3614
foreach (
XmlSchema
schema in schemas.GetSchemas(any.Namespace))
3637
internal XmlSchemaElement FindDataSetElement(
XmlSchema
schema) {
3657
XmlSchema
schema = values[0] as
XmlSchema
;
fx\src\data\System\Data\DataTable.cs (6)
5674
XmlSchema
s =
XmlSchema
.Read(reader, null);
5920
any.Namespace =
XmlSchema
.Namespace;
5937
XmlSchema
IXmlSerializable.GetSchema() {
5941
protected virtual
XmlSchema
GetSchema() {
5952
return
XmlSchema
.Read(new XmlTextReader(stream), null);
fx\src\data\System\Data\SQLTypes\SQLBinary.cs (4)
468
XmlSchema
IXmlSerializable.GetSchema() { return null; }
474
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
503
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
514
return new XmlQualifiedName("base64Binary",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLBoolean.cs (4)
563
XmlSchema
IXmlSerializable.GetSchema() { return null; }
569
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
585
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
596
return new XmlQualifiedName("boolean",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLByte.cs (4)
563
XmlSchema
IXmlSerializable.GetSchema() { return null; }
569
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
586
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
597
return new XmlQualifiedName("unsignedByte",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLBytes.cs (4)
520
XmlSchema
IXmlSerializable.GetSchema() {
527
string isNull = r.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
553
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
562
return new XmlQualifiedName("base64Binary",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLChars.cs (4)
518
XmlSchema
IXmlSerializable.GetSchema() {
525
string isNull = r.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
540
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
549
return new XmlQualifiedName("string",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLDateTime.cs (4)
620
XmlSchema
IXmlSerializable.GetSchema() { return null; }
626
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
655
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
666
return new XmlQualifiedName("dateTime",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLDecimal.cs (4)
3251
XmlSchema
IXmlSerializable.GetSchema() { return null; }
3257
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
3281
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
3292
return new XmlQualifiedName("decimal",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLDouble.cs (4)
483
XmlSchema
IXmlSerializable.GetSchema() { return null; }
489
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
506
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
517
return new XmlQualifiedName("double",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLGuid.cs (4)
359
XmlSchema
IXmlSerializable.GetSchema() { return null; }
365
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
381
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
392
return new XmlQualifiedName("string",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLInt16.cs (4)
572
XmlSchema
IXmlSerializable.GetSchema() { return null; }
578
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
595
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
606
return new XmlQualifiedName("short",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLInt32.cs (4)
584
XmlSchema
IXmlSerializable.GetSchema() { return null; }
590
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
607
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
618
return new XmlQualifiedName("int",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLInt64.cs (4)
638
XmlSchema
IXmlSerializable.GetSchema() { return null; }
644
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
661
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
672
return new XmlQualifiedName("long",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (4)
624
XmlSchema
IXmlSerializable.GetSchema() { return null; }
630
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
648
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
659
return new XmlQualifiedName("decimal",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLSingle.cs (4)
487
XmlSchema
IXmlSerializable.GetSchema() { return null; }
493
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
510
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
521
return new XmlQualifiedName("float",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SQLString.cs (4)
1000
XmlSchema
IXmlSerializable.GetSchema() { return null; }
1006
string isNull = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
1023
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
1034
return new XmlQualifiedName("string",
XmlSchema
.Namespace);
fx\src\data\System\Data\SQLTypes\SqlXml.cs (4)
213
XmlSchema
IXmlSerializable.GetSchema() {
218
string isNull = r.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
243
writer.WriteAttributeString("xsi", "nil",
XmlSchema
.InstanceNamespace, "true");
263
return new XmlQualifiedName("anyType",
XmlSchema
.Namespace);
fx\src\data\System\Data\XMLSchema.cs (8)
156
private void CollectElementsAnnotations(
XmlSchema
schema){
162
private void CollectElementsAnnotations(
XmlSchema
schema, ArrayList schemaList){
579
foreach (
XmlSchema
schemaRoot in schemaSet.Schemas()) {
613
foreach (
XmlSchema
schemaRoot in schemaSet.Schemas())
730
foreach (
XmlSchema
schemaRoot in schemaSet.Schemas()) { // we should have 1 schema
2175
if (((
XmlSchema
)e).ElementFormDefault == XmlSchemaForm.Unqualified) {
2364
foreach (
XmlSchema
schemaRoot in _schemaSet.Schemas()) {
2377
foreach (
XmlSchema
schemaRoot in _schemaSet.Schemas()) {
System.Data.Entity (4)
System\Data\EntityModel\SchemaObjectModel\Schema.cs (2)
1268
XmlSchema
schema =
XmlSchema
.Read(xsdStream, null);
System\Data\Mapping\StorageMappingItemLoader.cs (2)
3370
XmlSchema
xmlSchema =
XmlSchema
.Read(xsdReader, null);
System.Data.Services (2)
System\Data\Services\Serializers\SyndicationSerializer.cs (2)
1203
public System.Xml.Schema.
XmlSchema
GetSchema()
1257
public System.Xml.Schema.
XmlSchema
GetSchema()
System.Data.Services.Design (10)
System\Data\EntityModel\DataServiceBuildProvider.cs (2)
319
XmlSchema
serviceMapSchema;
323
serviceMapSchema =
XmlSchema
.Read(fileStream, null);
System\Data\EntityModel\EntityClassGenerator.cs (6)
262
XmlSchema
schema = result.Add(null, reader);
268
foreach (
XmlSchema
s in result.Schemas())
279
/// <param name="csdlSchema">Loaded <see cref="
XmlSchema
"/> for the 1.1 Entity Framework CSDL XSD.</param>
280
private static void RemoveReferentialConstraint(
XmlSchema
csdlSchema)
310
/// <param name="csdlSchema">Loaded <see cref="
XmlSchema
"/> for the 1.1 Entity Framework CSDL XSD.</param>
311
private static void AddCustomAttributesToEntityContainer(
XmlSchema
csdlSchema)
System\Data\Services\Design\Xml\XNodeSchemaApplier.cs (2)
173
XmlSchema
schema = schemaObject as
XmlSchema
;
System.IdentityModel (15)
System\IdentityModel\Metadata\MetadataSerializer.cs (5)
738
string xsiType = reader.GetAttribute("type",
XmlSchema
.InstanceNamespace);
1914
writer.WriteAttributeString("xsi", "type",
XmlSchema
.InstanceNamespace, FederationMetadataConstants.Prefix + ":" + FederationMetadataConstants.Elements.ApplicationServiceType);
2873
writer.WriteAttributeString("xsi", "type",
XmlSchema
.InstanceNamespace, FederationMetadataConstants.Prefix + ":" + FederationMetadataConstants.Elements.SecurityTokenServiceType);
3227
XmlUtil.ValidateXsiType(reader, "string",
XmlSchema
.Namespace);
3315
writer.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, XmlConvert.ToString(true));
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (6)
896
XmlUtil.ValidateXsiType(reader, "NCName",
XmlSchema
.Namespace);
945
XmlUtil.ValidateXsiType(reader, "anyURI",
XmlSchema
.Namespace);
3046
string attributeValueXsiTypeSuffixWithLocalPrefix = reader.GetAttribute("type",
XmlSchema
.InstanceNamespace);
3240
writer.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, XmlConvert.ToString(true));
3247
writer.WriteAttributeString("type",
XmlSchema
.InstanceNamespace, String.Concat(ProductConstants.ClaimValueTypeSerializationPrefixWithColon, xsiTypeSuffix));
5387
writer.WriteAttributeString("type",
XmlSchema
.InstanceNamespace, Saml2Constants.Types.KeyInfoConfirmationDataType);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
2643
string attributeValueXsiTypeSuffixWithLocalPrefix = reader.GetAttribute("type",
XmlSchema
.InstanceNamespace);
2808
writer.WriteAttributeString("type",
XmlSchema
.InstanceNamespace, String.Concat(ProductConstants.ClaimValueTypeSerializationPrefixWithColon, xsiTypeSuffix));
System\IdentityModel\XmlUtil.cs (2)
127
string xsiType = reader.GetAttribute("type",
XmlSchema
.InstanceNamespace);
147
string xsiNil = reader.GetAttribute("nil",
XmlSchema
.InstanceNamespace);
System.Runtime.Serialization (59)
System\Runtime\Serialization\CodeExporter.cs (1)
1713
getSchemaMethod.ReturnType = GetCodeTypeReference(typeof(
XmlSchema
));
System\Runtime\Serialization\Globals.cs (2)
1162
public const string SchemaInstanceNamespace =
XmlSchema
.InstanceNamespace;
1163
public const string SchemaNamespace =
XmlSchema
.Namespace;
System\Runtime\Serialization\SchemaExporter.cs (26)
78
XmlSchema
schema =
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
93
XmlSchema
schema = GetSchema(dataContract.StableName.Namespace);
112
XmlSchemaElement ExportTopLevelElement(DataContract dataContract,
XmlSchema
schema)
125
void ExportClassDataContract(ClassDataContract classDataContract,
XmlSchema
schema)
182
void AddReferenceAttributes(XmlSchemaObjectCollection attributes,
XmlSchema
schema)
190
void SetElementType(XmlSchemaElement element, DataContract dataContract,
XmlSchema
schema)
360
void ExportCollectionDataContract(CollectionDataContract collectionDataContract,
XmlSchema
schema)
420
void ExportEnumDataContract(EnumDataContract enumDataContract,
XmlSchema
schema)
459
void ExportISerializableDataContract(ClassDataContract dataContract,
XmlSchema
schema)
486
XmlSchemaComplexContentExtension CreateTypeContent(XmlSchemaComplexType type, XmlQualifiedName baseTypeName,
XmlSchema
schema)
516
XmlSchema
schema;
528
if (anonymousType == null && xsdType == null && typeQName.Namespace !=
XmlSchema
.Namespace)
551
XmlSchema
[] schemaArray = new
XmlSchema
[schemas.Count];
555
XmlSchema
schema = schemaArray[i];
671
foreach (
XmlSchema
schema in schemas.Schemas())
701
XmlSchema
schema = ixmlSerializable.GetSchema();
718
XmlSchema
schema = SchemaHelper.GetSchema(ns, schemas);
781
schemaRefElement.RefName = new XmlQualifiedName(Globals.SchemaLocalName,
XmlSchema
.Namespace);
785
XmlSchema
schema = SchemaHelper.GetSchema(ns, schemas);
790
static void AddDefaultTypedDatasetType(XmlSchemaSet schemas,
XmlSchema
datasetSchema, string localName, string ns)
799
XmlSchema
schema = SchemaHelper.GetSchema(ns, schemas);
805
XmlSchemaAnnotation GetSchemaAnnotation(XmlQualifiedName annotationQualifiedName, string innerText,
XmlSchema
schema)
836
XmlElement GetAnnotationMarkup(XmlQualifiedName annotationQualifiedName, string innerText,
XmlSchema
schema)
844
XmlSchema
GetSchema(string ns)
System\Runtime\Serialization\SchemaHelper.cs (17)
18
internal
XmlSchema
schema;
21
internal SchemaObjectInfo(XmlSchemaType type, XmlSchemaElement element,
XmlSchema
schema, List<XmlSchemaType> knownTypes)
41
internal static XmlSchemaType GetSchemaType(XmlSchemaSet schemas, XmlQualifiedName typeQName, out
XmlSchema
outSchema)
46
foreach (
XmlSchema
schema in currentSchemas)
74
internal static
XmlSchema
GetSchemaWithType(SchemaObjectDictionary schemaInfo, XmlSchemaSet schemas, XmlQualifiedName typeName)
84
foreach (
XmlSchema
schema in currentSchemas)
94
internal static XmlSchemaElement GetSchemaElement(XmlSchemaSet schemas, XmlQualifiedName elementQName, out
XmlSchema
outSchema)
99
foreach (
XmlSchema
schema in currentSchemas)
127
internal static
XmlSchema
GetSchema(string ns, XmlSchemaSet schemas)
132
foreach (
XmlSchema
schema in currentSchemas)
142
static
XmlSchema
CreateSchema(string ns, XmlSchemaSet schemas)
144
XmlSchema
schema = new XmlSchema();
158
internal static void AddElementForm(XmlSchemaElement element,
XmlSchema
schema)
166
internal static void AddSchemaImport(string ns,
XmlSchema
schema)
186
internal static
XmlSchema
GetSchemaWithGlobalElementDeclaration(XmlSchemaElement element, XmlSchemaSet schemas)
189
foreach (
XmlSchema
schema in currentSchemas)
213
foreach (
XmlSchema
schema in currentSchemas)
System\Runtime\Serialization\SchemaImporter.cs (13)
54
XmlSchema
schema =
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
82
XmlSchema
schema = (
XmlSchema
)schemaObj;
119
XmlSchema
schema = SchemaHelper.GetSchemaWithGlobalElementDeclaration(element, schemaSet);
137
if (schemaSet.Contains(
XmlSchema
.Namespace))
142
XmlSchema
xsdSchema = new XmlSchema();
143
xsdSchema.TargetNamespace =
XmlSchema
.Namespace;
249
foreach (
XmlSchema
schema in schemaList)
342
XmlSchema
schema = schemaObj as
XmlSchema
;
611
XmlSchema
serializationSchema =
XmlSchema
.Read(XmlReader.Create(new StringReader(Globals.SerializationSchema)), null);
System.ServiceModel (165)
System\ServiceModel\Administration\ServiceInfo.cs (3)
141
else if (section.Metadata is System.Xml.Schema.
XmlSchema
)
143
System.Xml.Schema.
XmlSchema
metadata = (System.Xml.Schema.
XmlSchema
)section.Metadata;
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceRecords.cs (1)
337
foreach (
XmlSchema
schema in schemas)
System\ServiceModel\ComIntegration\ComPlusDiagnosticTraceSchemas.cs (5)
65
public
XmlSchema
GetSchema()
802
XmlSchema
schema
814
XmlSchema
schema;
815
public XmlSchemaWrapper(
XmlSchema
schema)
853
public
XmlSchema
GetSchema()
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (2)
429
XmlSchema
schema = document as
XmlSchema
;
System\ServiceModel\ComIntegration\WsdlServiceChannelBuilder.cs (1)
263
foreach (
XmlSchema
schema in wsdl.Types.Schemas)
System\ServiceModel\Description\MessageContractExporter.cs (31)
111
foreach (
XmlSchema
schema in exporter.GeneratedXmlSchemas.Schemas())
167
XmlSchema
schema = SchemaHelper.GetSchema(DataContractSerializerMessageContractImporter.GenericMessageTypeName.Namespace, schemas);
193
XmlSchema
schema = SchemaHelper.GetSchema(DataContractSerializerMessageContractImporter.StreamBodyTypeName.Namespace, schemas);
313
XmlSchema
xsd = GetContainedSchema(wsdl, refNs);
336
static
XmlSchema
GetContainedSchema(WsdlNS.ServiceDescription wsdl, string ns)
338
foreach (
XmlSchema
xsd in wsdl.Types.Schemas)
375
XmlSchema
schema = SchemaHelper.GetSchema(wrapperNs, schemaSet);
641
foreach (
XmlSchema
schema in SchemaSet.Schemas())
902
XmlSchema
wsdl = StockSchemas.CreateWsdl();
903
XmlSchema
soap = StockSchemas.CreateSoap();
904
XmlSchema
soapEncoding = StockSchemas.CreateSoapEncoding();
905
XmlSchema
fakeXsdSchema = StockSchemas.CreateFakeXsdSchema();
1292
foreach (
XmlSchema
schema in this.SchemaSet.Schemas())
1303
XmlSchema
wsdl = StockSchemas.CreateWsdl();
1304
XmlSchema
soap = StockSchemas.CreateSoap();
1305
XmlSchema
soapEncoding = StockSchemas.CreateSoapEncoding();
1306
XmlSchema
fakeXsdSchema = StockSchemas.CreateFakeXsdSchema();
1333
foreach (
XmlSchema
srcSchema in schemas)
1348
internal static
XmlSchema
CreateWsdl()
1351
return
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
1354
internal static
XmlSchema
CreateSoap()
1357
return
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
1360
internal static
XmlSchema
CreateSoapEncoding()
1363
return
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
1366
internal static
XmlSchema
CreateFakeSoapEncoding()
1369
return
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
1372
internal static
XmlSchema
CreateFakeXsdSchema()
1375
return
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
1378
internal static
XmlSchema
CreateFakeXmlSchema()
1381
return
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
1386
return ns ==
XmlSchema
.Namespace || ns == "http://schemas.xmlsoap.org/wsdl/soap/" || ns == "http://schemas.xmlsoap.org/soap/encoding/";
System\ServiceModel\Description\MessageContractImporter.cs (33)
27
static readonly XmlQualifiedName AnyType = new XmlQualifiedName("anyType",
XmlSchema
.Namespace);
797
XmlSchema
schema;
801
static XmlSchemaElement FindSchemaElement(XmlSchemaSet schemaSet, XmlQualifiedName elementName, out
XmlSchema
containingSchema)
805
foreach (
XmlSchema
schema in GetSchema(schemaSet, elementName.Namespace))
821
if (typeName.Namespace ==
XmlSchema
.Namespace)
823
XmlSchema
schema;
827
static XmlSchemaType FindSchemaType(XmlSchemaSet schemaSet, XmlQualifiedName typeName, out
XmlSchema
containingSchema)
834
foreach (
XmlSchema
schema in GetSchema(schemaSet, typeName.Namespace))
858
foreach (
XmlSchema
xsd in wsdl.Types.Schemas)
901
XmlSchema
wsdl = StockSchemas.CreateWsdl();
902
XmlSchema
soap = StockSchemas.CreateSoap();
903
XmlSchema
soapEncoding = StockSchemas.CreateSoapEncoding();
933
AddSchema(element.Parent as
XmlSchema
, isEncoded, isLiteral, encodedSchemas, literalSchemas, references);
939
AddSchema(type.Parent as
XmlSchema
, isEncoded, isLiteral, encodedSchemas, literalSchemas, references);
949
AddSchema(type.Parent as
XmlSchema
, isEncoded, isLiteral, encodedSchemas, literalSchemas, references);
961
foreach (
XmlSchema
schema in schemas)
966
foreach (
XmlSchema
schema in imports.Keys)
978
foreach (
XmlSchema
schema in allSchemas.Schemas())
987
foreach (
XmlSchema
schema in imports.Keys)
1002
foreach (
XmlSchema
schema in references.Values)
1009
foreach (
XmlSchema
schema in references.Values)
1019
XmlSchema
fakeXsdSchema = StockSchemas.CreateFakeXsdSchema();
1021
foreach (
XmlSchema
schema in schemas)
1035
static void AddImport(
XmlSchema
schema, Hashtable imports, XmlSchemaSet allSchemas)
1045
foreach (
XmlSchema
s in allSchemas.Schemas(import.Namespace))
1053
static void AddSchema(
XmlSchema
schema, bool isEncoded, bool isLiteral, XmlSchemas encodedSchemas, XmlSchemas literalSchemas, Hashtable references)
1258
XmlSchema
schema;
1271
if (schemaTypeName.Namespace ==
XmlSchema
.Namespace)
2086
XmlSchema
wsdl = StockSchemas.CreateWsdl();
2087
XmlSchema
soap = StockSchemas.CreateSoap();
2088
XmlSchema
soapEncoding = StockSchemas.CreateSoapEncoding();
2089
XmlSchema
fakeXsdSchema = StockSchemas.CreateFakeXsdSchema();
2090
XmlSchema
fakeXmlSchema = StockSchemas.CreateFakeXmlSchema();
System\ServiceModel\Description\MetadataExchangeClient.cs (8)
573
else if (section.Metadata is XsdNS.
XmlSchema
)
589
XsdNS.
XmlSchema
schema = (XsdNS.
XmlSchema
)section.Metadata;
613
foreach (XsdNS.
XmlSchema
schema in wsdl.Types.Schemas)
699
XsdNS.
XmlSchema
schema = XsdNS.
XmlSchema
.Read(reader, null);
701
metadataType = typeof(XsdNS.
XmlSchema
);
725
&& reader.NamespaceURI == XsdNS.
XmlSchema
.Namespace;
System\ServiceModel\Description\MetadataReference.cs (1)
47
System.Xml.Schema.
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\Description\MetadataSection.cs (4)
40
static public string XmlSchemaDialect { get { return System.Xml.Schema.
XmlSchema
.Namespace; } }
65
[XmlElement(MetadataStrings.XmlSchema.Schema, typeof(XsdNS.
XmlSchema
), Namespace = XsdNS.
XmlSchema
.Namespace)]
107
public static MetadataSection CreateFromSchema(XsdNS.
XmlSchema
schema)
System\ServiceModel\Description\MetadataSet.cs (4)
64
System.Xml.Schema.
XmlSchema
IXmlSerializable.GetSchema()
354
else if (o.@Metadata is global::System.Xml.Schema.
XmlSchema
)
356
((global::System.Xml.Schema.
XmlSchema
)o.@Metadata).Write(this.Writer);
575
o.@Metadata = System.Xml.Schema.
XmlSchema
.Read(this.Reader, null);
System\ServiceModel\Description\SchemaHelper.cs (10)
15
static internal void AddElementForm(XmlSchemaElement element,
XmlSchema
schema)
21
static internal void AddElementToSchema(XmlSchemaElement element,
XmlSchema
schema, XmlSchemaSet schemaSet)
38
static internal void AddImportToSchema(string ns,
XmlSchema
schema)
41
|| NamespacesEqual(ns,
XmlSchema
.Namespace)
42
|| NamespacesEqual(ns,
XmlSchema
.InstanceNamespace))
57
static internal void AddTypeToSchema(XmlSchemaType type,
XmlSchema
schema, XmlSchemaSet schemaSet)
73
static internal
XmlSchema
GetSchema(string ns, XmlSchemaSet schemaSet)
78
foreach (
XmlSchema
existingSchema in schemas)
84
XmlSchema
schema = new XmlSchema();
182
if (typeName.Namespace ==
XmlSchema
.Namespace)
System\ServiceModel\Description\ServiceMetadataExtension.cs (11)
878
else if (doc is
XmlSchema
)
881
((
XmlSchema
)doc), writeFilter);
1125
foreach (
XmlSchema
xsdDoc in xsds.Schemas())
1169
if (section.Metadata is
XmlSchema
)
1171
xsds.Add((
XmlSchema
)section.Metadata);
1186
foreach (
XmlSchema
xsdDoc in this.xsds.Schemas())
1209
foreach (
XmlSchema
xsdDoc in wsdlDoc.Types.Schemas)
1216
void FixImportAddresses(
XmlSchema
xsdDoc)
1225
foreach (
XmlSchema
targetXsd in this.xsds.Schemas(targetNs ?? String.Empty))
1720
XmlSchema
schema;
1723
public XmlSchemaMessage(
XmlSchema
schema, WriteFilter responseWriter)
System\ServiceModel\Description\WsdlExporter.cs (2)
136
foreach (
XmlSchema
schema in xmlSchemas.Schemas())
923
namespaces.Add("xsd",
XmlSchema
.Namespace);
System\ServiceModel\Description\WsdlHelper.cs (11)
29
List<
XmlSchema
> xsds = new List<
XmlSchema
>();
38
if (section.Metadata is
XmlSchema
)
40
xsds.Add((
XmlSchema
)section.Metadata);
48
foreach (
XmlSchema
schema in xsds)
50
XmlSchema
newSchema = CloneXsd(schema);
58
private static void RemoveSchemaLocations(
XmlSchema
schema)
319
private static
XmlSchema
CloneXsd(
XmlSchema
originalXsd)
322
XmlSchema
newXsd;
327
newXsd =
XmlSchema
.Read(new XmlTextReader(memoryStream) { DtdProcessing = DtdProcessing.Parse }, null);
System\ServiceModel\Description\WsdlImporter.cs (2)
606
xmlSchemas.Add(TryConvert<
XmlSchema
>(doc));
1584
foreach (
XmlSchema
schema in xmlSchemas.Schemas())
System\ServiceModel\Dispatcher\EndpointAddressProcessor.cs (1)
21
internal static readonly string XsiNs =
XmlSchema
.InstanceNamespace;
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (1)
61
xsiNilNamespace = dictionary.Add(System.Xml.Schema.
XmlSchema
.InstanceNamespace);
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (2)
267
writer.WriteAttributeString("xmlns", "xsi", null,
XmlSchema
.InstanceNamespace);
268
writer.WriteAttributeString("xmlns", "xsd", null,
XmlSchema
.Namespace);
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (8)
79
dAttr.SchemaTypeName = new XmlQualifiedName("string",
XmlSchema
.Namespace);
84
innerExt.BaseTypeName = new XmlQualifiedName("string",
XmlSchema
.Namespace);
107
nqAttr.SchemaTypeName = new XmlQualifiedName("int",
XmlSchema
.Namespace);
135
((
XmlSchema
)en.Current).Items.Add(outerType);
139
XmlSchema
schema = new XmlSchema();
337
XmlSchema
IXmlSerializable.GetSchema()
342
protected virtual
XmlSchema
OnGetSchema()
346
XmlSchema
schema = new XmlSchema();
System\ServiceModel\EndpointAddress10.cs (6)
68
static
XmlSchema
GetEprSchema()
72
return
XmlSchema
.Read(reader, null);
82
XmlSchema
eprSchema = GetEprSchema();
88
XmlSchema
schemaToAdd = null;
89
foreach (
XmlSchema
xmlSchema in schemas)
111
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\EndpointAddressAugust2004.cs (6)
68
static
XmlSchema
GetEprSchema()
72
return
XmlSchema
.Read(reader, null);
81
XmlSchema
eprSchema = GetEprSchema();
87
XmlSchema
schemaToAdd = null;
88
foreach (
XmlSchema
xmlSchema in schemas)
110
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\Security\WSTrustServiceContract.cs (6)
1988
foreach (
XmlSchema
xmlSchema in context.WsdlPort.Service.ServiceDescription.Types.Schemas)
2001
XmlSchema
schema = GetXmlSchema(exporter, ns);
2006
XmlSchema
importedSchema = null;
2033
static
XmlSchema
GetXmlSchema(WsdlExporter exporter, string ns)
2048
foreach (
XmlSchema
s in schemas)
2068
return
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (1)
110
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (1)
103
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\Syndication\AtomPub10CategoriesDocumentFormatter.cs (1)
96
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\Syndication\AtomPub10ServiceDocumentFormatter.cs (1)
79
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (1)
122
XmlSchema
IXmlSerializable.GetSchema()
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (1)
121
XmlSchema
IXmlSerializable.GetSchema()
System.ServiceModel.Discovery (38)
System\ServiceModel\Discovery\SchemaUtility.cs (26)
37
XmlSchema
discoverySchema = null;
47
foreach (
XmlSchema
schema in discoverySchemas)
80
XmlSchema
discoverySchema = null;
89
foreach (
XmlSchema
schema in discoverySchemas)
138
XmlSchema
discoverySchema = null;
148
foreach (
XmlSchema
schema in discoverySchemas)
174
XmlSchema
discoverySchema = null;
183
foreach (
XmlSchema
schema in discoverySchemas)
201
static void AddElements(DiscoveryVersion discoveryVersion, SchemaElements elementsFound,
XmlSchema
discoverySchema)
221
static void AddAppSequenceType(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
266
static void AddImport(
XmlSchema
schema, string importNamespace)
273
static void AddMetadataVersionSchemaElement(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
283
static void AddResolveType(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
318
static void AddProbeMatchType(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
378
static void AddProbeType(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
421
static void AddQNameListType(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
437
static void AddSchemaTypes(DiscoveryVersion discoveryVersion, SchemaTypes typesFound,
XmlSchema
discoverySchema)
465
static void AddScopesElement(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
475
static void AddScopesType(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
511
static void AddTypesElement(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
521
static void AddUriListType(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
537
static void AddXAddrsElement(DiscoveryVersion discoveryVersion,
XmlSchema
schema)
547
static
XmlSchema
CreateSchema(DiscoveryVersion discoveryVersion)
549
XmlSchema
schema = new XmlSchema();
558
static void LocateSchemaElements(DiscoveryVersion discoveryVersion,
XmlSchema
schema, ref SchemaElements elementsFound)
582
static void LocateSchemaTypes(DiscoveryVersion discoveryVersion,
XmlSchema
schema, ref SchemaTypes typesFound)
System\ServiceModel\Discovery\Version11\DiscoveryMessageSequence11.cs (1)
52
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\Version11\EndpointDiscoveryMetadata11.cs (1)
53
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\Version11\FindCriteria11.cs (1)
53
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\Version11\ResolveCriteria11.cs (1)
52
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionApril2005\DiscoveryMessageSequenceApril2005.cs (1)
52
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionApril2005\EndpointDiscoveryMetadataApril2005.cs (1)
53
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionApril2005\FindCriteriaApril2005.cs (1)
53
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionApril2005\ResolveCriteriaApril2005.cs (1)
52
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionCD1\DiscoveryMessageSequenceCD1.cs (1)
52
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionCD1\EndpointDiscoveryMetadataCD1.cs (1)
53
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionCD1\FindCriteriaCD1.cs (1)
53
public
XmlSchema
GetSchema()
System\ServiceModel\Discovery\VersionCD1\ResolveCriteriaCD1.cs (1)
52
public
XmlSchema
GetSchema()
System.ServiceModel.Web (9)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (2)
37
{ typeof(
XmlSchema
), EmptyHandler },
87
{ typeof(
XmlSchema
), EmptyHandler },
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (3)
317
foreach (
XmlSchema
schema in operationInfo.Request.SchemaSet.Schemas())
329
foreach (
XmlSchema
schema in operationInfo.Response.SchemaSet.Schemas())
339
private static XElement XmlSchemaToXElement(
XmlSchema
schema)
System\ServiceModel\Dispatcher\HelpPage.cs (4)
288
public
XmlSchema
Schema { get; private set; }
369
foreach (
XmlSchema
schema in schemas)
406
foreach (
XmlSchema
schema in exporter.Schemas.Schemas())
431
foreach (
XmlSchema
schema in this.SchemaSet.Schemas(name.Namespace))
System.Web.Extensions (25)
Compilation\WCFModel\DataSvcMapFileLoader.cs (1)
63
_mapFileSchemaSet.Add(
XmlSchema
.Read(stream, null));
Compilation\WCFModel\MetadataFile.cs (5)
324
public
XmlSchema
MetadataXmlSchema
636
cachedMetadata = new MetadataContent(
XmlSchema
.Read(xmlReader, null));
765
private
XmlSchema
m_MetadataXmlSchema;
789
internal MetadataContent(
XmlSchema
schema)
850
public
XmlSchema
MetadataXmlSchema
Compilation\WCFModel\SchemaMerger.cs (6)
69
internal static void MergeSchemas(IEnumerable<
XmlSchema
> schemaList, IList<ProxyGenerationError> importErrors, out IEnumerable<
XmlSchema
> duplicatedSchemas)
80
List<
XmlSchema
> duplicatedSchemaList = new List<
XmlSchema
>();
90
foreach (
XmlSchema
schema in schemaList)
131
XmlSchema
schema,
Compilation\WCFModel\SvcMapFileLoader.cs (1)
63
_mapFileSchemaSet.Add(
XmlSchema
.Read(stream, null));
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (7)
1503
Dictionary<
XmlSchema
, MetadataSection> schemaList = new Dictionary<
XmlSchema
, MetadataSection>();
1510
XmlSchema
schema = (
XmlSchema
)metadataSection.Metadata;
1521
foreach (
XmlSchema
schema in wsdl.Types.Schemas)
1529
IEnumerable<
XmlSchema
> duplicatedSchemas;
1534
foreach (
XmlSchema
schema in duplicatedSchemas)
Compilation\WCFModel\XmlStrings.cs (1)
57
internal const string NamespaceUri = System.Xml.Schema.
XmlSchema
.Namespace;
Script\Services\WebServiceTypeData.cs (4)
30
private const string SchemaNamespace =
XmlSchema
.Namespace;
109
XmlQualifiedName stableName = new XmlQualifiedName(localName,
XmlSchema
.Namespace);
204
foreach (
XmlSchema
schema in schemas) {
293
XmlQualifiedName baseTypeName = ImportActualType(annotation, new XmlQualifiedName("int",
XmlSchema
.Namespace), typeQualifiedName);
System.Web.Services (81)
System\Web\Services\Description\HttpProtocolReflector.cs (3)
77
XmlSchema
schema = new XmlSchema();
83
element.SchemaTypeName = new XmlQualifiedName("string",
XmlSchema
.Namespace);
109
part.Type = new XmlQualifiedName("string",
XmlSchema
.Namespace);
System\Web\Services\Description\SchemaCompiler.cs (8)
32
static void AddImport(
XmlSchema
schema, string ns) {
47
foreach (
XmlSchema
schema in schemas) {
65
if (source is
XmlSchema
) {
66
ns = ((
XmlSchema
)source).TargetNamespace;
78
while (o.Parent != null && !(o.Parent is
XmlSchema
)) {
86
if (tmp is
XmlSchema
) {
87
ns = ((
XmlSchema
)tmp).TargetNamespace;
135
else if (o is
XmlSchema
) {
System\Web\Services\Description\ServiceDescription.cs (9)
55
static
XmlSchema
schema = null;
56
static
XmlSchema
soapEncodingSchema = null;
168
public static
XmlSchema
Schema {
174
schema =
XmlSchema
.Read(reader, null);
181
internal static
XmlSchema
SoapEncodingSchema {
187
soapEncodingSchema =
XmlSchema
.Read(reader, null);
259
ns.Add("s",
XmlSchema
.Namespace);
1385
[XmlElement("schema", typeof(
XmlSchema
), Namespace =
XmlSchema
.Namespace)]
System\Web\Services\Description\ServiceDescriptionImporter.cs (16)
314
XmlSchema
schema = document as
XmlSchema
;
395
private void AddImport(
XmlSchema
schema, Hashtable imports) {
402
foreach (
XmlSchema
s in allSchemas.GetSchemas(import.Namespace)) {
411
foreach (
XmlSchema
schema in schemas) {
415
foreach (
XmlSchema
schema in description.Types.Schemas) {
448
AddSchema(element.Parent as
XmlSchema
, isEncoded, isLiteral, abstractSchemas, concreteSchemas, references);
452
AddSchema(type.Parent as
XmlSchema
, isEncoded, isLiteral, abstractSchemas, concreteSchemas, references);
460
AddSchema(type.Parent as
XmlSchema
, isEncoded, isLiteral, abstractSchemas, concreteSchemas, references);
471
foreach (
XmlSchema
schema in xmlschemas) {
475
foreach (
XmlSchema
schema in imports.Keys) {
485
foreach (
XmlSchema
schema in allSchemas) {
492
foreach (
XmlSchema
schema in imports.Keys) {
503
foreach (
XmlSchema
schema in references.Values) {
511
foreach (
XmlSchema
schema in references.Values) {
535
private static void AddSchema(
XmlSchema
schema, bool isEncoded, bool isLiteral, XmlSchemas abstractSchemas, XmlSchemas concreteSchemas, Hashtable references) {
System\Web\Services\Description\ServiceDescriptionReflector.cs (3)
206
XmlSchema
[] descriptionSchemas = new
XmlSchema
[ServiceDescription.Types.Schemas.Count];
208
foreach (
XmlSchema
schema in descriptionSchemas) {
System\Web\Services\Description\ServiceDescriptionSerializer.cs (5)
1790
Write66_XmlSchema(@"schema", @"http://www.w3.org/2001/XMLSchema", ((global::System.Xml.Schema.
XmlSchema
)a[ia]), false, false);
1797
void Write66_XmlSchema(string n, string ns, global::System.Xml.Schema.
XmlSchema
o, bool isNullable, bool needType) {
1804
if (t == typeof(global::System.Xml.Schema.
XmlSchema
)) {
6807
global::System.Xml.Schema.
XmlSchema
Read66_XmlSchema(bool isNullable, bool checkType) {
6819
global::System.Xml.Schema.
XmlSchema
o;
System\Web\Services\Description\SoapFormatExtensions.cs (3)
17
static
XmlSchema
schema = null;
42
public static
XmlSchema
Schema {
48
schema =
XmlSchema
.Read(reader, null);
System\Web\Services\Description\WebReferenceOptions.cs (3)
26
static
XmlSchema
schema = null;
94
public static
XmlSchema
Schema {
100
schema =
XmlSchema
.Read(reader, null);
System\Web\Services\Description\WebServicesInteroperability.cs (1)
308
foreach (
XmlSchema
schema in description.Types.Schemas) {
System\Web\Services\Discovery\ContractReference.cs (4)
120
foreach (
XmlSchema
schema in Contract.Types.Schemas) {
201
foreach (
XmlSchema
schema in serviceDescription.Types.Schemas) {
244
else if (reader.IsStartElement("schema",
XmlSchema
.Namespace)) {
245
ClientProtocol.Documents[importUrl] =
XmlSchema
.Read(reader, null);
System\Web\Services\Discovery\SchemaReference.cs (11)
88
internal
XmlSchema
GetSchema() {
107
internal static void LoadExternals(
XmlSchema
schema, string url, DiscoveryClientProtocol client, Hashtable loadedExternals) {
131
((
XmlSchema
)document).Write(new StreamWriter(stream, new UTF8Encoding(false)));
142
return
XmlSchema
.Read(reader, null);
165
public
XmlSchema
Schema {
178
XmlSchema
schema = document as
XmlSchema
;
181
typeof(
XmlSchema
).FullName,
196
XmlSchema
schema = ClientProtocol.Documents[Url] as
XmlSchema
;
200
schema = (
XmlSchema
)ReadDocument(stream);
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (6)
117
internal void AddExternal(
XmlSchema
schema, string ns, string location) {
144
foreach (
XmlSchema
schema in schemas) {
154
XmlSchema
top = new XmlSchema();
169
internal
XmlSchema
GetSchema(string id) {
170
return (
XmlSchema
)schemaTable[id];
272
XmlSchema
schema = serverType.GetSchema(id);
System\Web\Services\Protocols\RuntimeUtils.cs (1)
79
if (ns ==
XmlSchema
.InstanceNamespace)
System\Web\Services\Protocols\Soap11ServerProtocol.cs (2)
97
writer.WriteAttributeString("xmlns", "xsi", null,
XmlSchema
.InstanceNamespace);
98
writer.WriteAttributeString("xmlns", "xsd", null,
XmlSchema
.Namespace);
System\Web\Services\Protocols\Soap12ServerProtocol.cs (2)
116
writer.WriteAttributeString("xmlns", "xsi", null,
XmlSchema
.InstanceNamespace);
117
writer.WriteAttributeString("xmlns", "xsd", null,
XmlSchema
.Namespace);
System\Web\Services\Protocols\SoapClientProtocol.cs (2)
566
writer.WriteAttributeString("xmlns", "xsi", null,
XmlSchema
.InstanceNamespace);
567
writer.WriteAttributeString("xmlns", "xsd", null,
XmlSchema
.Namespace);
System\Web\Services\Protocols\SoapServerProtocol.cs (2)
700
writer.WriteAttributeString("xmlns", "xsi", null,
XmlSchema
.InstanceNamespace);
701
writer.WriteAttributeString("xmlns", "xsd", null,
XmlSchema
.Namespace);
System.Workflow.Runtime (3)
Tracking\TrackingProfileSerializer.cs (3)
32
_schema =
XmlSchema
.Read(new XmlTextReader(reader) { DtdProcessing = DtdProcessing.Prohibit }, null);
36
public
XmlSchema
Schema
1358
private
XmlSchema
_schema = null;
System.Xml (423)
System\Xml\Core\XsdValidatingReader.cs (1)
1830
XmlSchema
schema = inlineSchemaParser.XmlSchema;
System\Xml\Core\XsdValidatingReaderAsync.cs (1)
539
XmlSchema
schema = inlineSchemaParser.XmlSchema;
System\Xml\Schema\BaseProcessor.cs (2)
73
XmlSchema
schemaForXmlNS = Preprocessor.GetBuildInSchema();
91
XmlSchema
schemaForXmlNS = Preprocessor.GetBuildInSchema();
System\Xml\Schema\Chameleonkey.cs (2)
23
internal
XmlSchema
originalSchema;
32
public ChameleonKey(string ns,
XmlSchema
originalSchema) {
System\Xml\Schema\Inference\Infer.cs (41)
29
internal static XmlQualifiedName ST_boolean = new XmlQualifiedName("boolean",
XmlSchema
.Namespace);
30
internal static XmlQualifiedName ST_byte = new XmlQualifiedName("byte",
XmlSchema
.Namespace);
31
internal static XmlQualifiedName ST_unsignedByte = new XmlQualifiedName("unsignedByte",
XmlSchema
.Namespace);
32
internal static XmlQualifiedName ST_short = new XmlQualifiedName("short",
XmlSchema
.Namespace);
33
internal static XmlQualifiedName ST_unsignedShort = new XmlQualifiedName("unsignedShort",
XmlSchema
.Namespace);
34
internal static XmlQualifiedName ST_int = new XmlQualifiedName("int",
XmlSchema
.Namespace);
35
internal static XmlQualifiedName ST_unsignedInt = new XmlQualifiedName("unsignedInt",
XmlSchema
.Namespace);
36
internal static XmlQualifiedName ST_long = new XmlQualifiedName("long",
XmlSchema
.Namespace);
37
internal static XmlQualifiedName ST_unsignedLong = new XmlQualifiedName("unsignedLong",
XmlSchema
.Namespace);
38
internal static XmlQualifiedName ST_integer = new XmlQualifiedName("integer",
XmlSchema
.Namespace);
39
internal static XmlQualifiedName ST_decimal = new XmlQualifiedName("decimal",
XmlSchema
.Namespace);
40
internal static XmlQualifiedName ST_float = new XmlQualifiedName("float",
XmlSchema
.Namespace);
41
internal static XmlQualifiedName ST_double = new XmlQualifiedName("double",
XmlSchema
.Namespace);
42
internal static XmlQualifiedName ST_duration = new XmlQualifiedName("duration",
XmlSchema
.Namespace);
43
internal static XmlQualifiedName ST_dateTime = new XmlQualifiedName("dateTime",
XmlSchema
.Namespace);
44
internal static XmlQualifiedName ST_time = new XmlQualifiedName("time",
XmlSchema
.Namespace);
45
internal static XmlQualifiedName ST_date = new XmlQualifiedName("date",
XmlSchema
.Namespace);
46
internal static XmlQualifiedName ST_gYearMonth = new XmlQualifiedName("gYearMonth",
XmlSchema
.Namespace);
47
internal static XmlQualifiedName ST_string = new XmlQualifiedName("string",
XmlSchema
.Namespace);
48
internal static XmlQualifiedName ST_anySimpleType = new XmlQualifiedName("anySimpleType",
XmlSchema
.Namespace);
115
XmlSchema
rootSchema = null; //(XmlSchema) xsc[TargetNamespace];
179
this.NamespaceManager.AddNamespace("xs",
XmlSchema
.Namespace);
218
if ( xtr.NamespaceURI ==
XmlSchema
.Namespace)
227
rootSchema = elem.Parent as
XmlSchema
;
289
private XmlSchemaAttribute AddAttribute(string localName, string prefix, string childURI, string attrValue, bool bCreatingNewType,
XmlSchema
parentSchema, XmlSchemaObjectCollection addLocation, XmlSchemaObjectTable compiledAttributes)
291
if (childURI ==
XmlSchema
.Namespace)
299
XmlSchema
xs = null;
372
xs = col[0] as
XmlSchema
;
498
private
XmlSchema
CreateXmlSchema(string targetNS)
501
XmlSchema
xs = new XmlSchema();
509
private XmlSchemaElement AddElement(string localName, string prefix, string childURI,
XmlSchema
parentSchema, XmlSchemaObjectCollection addLocation, int positionWithinCollection)
511
if (childURI ==
XmlSchema
.Namespace)
518
XmlSchema
xs = null;
543
xs = col[0] as
XmlSchema
;
649
internal void InferElement(XmlSchemaElement xse, bool bCreatingNewType,
XmlSchema
parentSchema)
1043
internal XmlSchemaElement FindMatchingElement(bool bCreatingNewType, XmlReader xtr,XmlSchemaComplexType ct, ref int lastUsedSeqItem, ref bool bParticleChanged,
XmlSchema
parentSchema, bool setMaxoccurs)
1045
if (xtr.NamespaceURI ==
XmlSchema
.Namespace)
1211
internal void ProcessAttributes(ref XmlSchemaElement xse, XmlSchemaType effectiveSchemaType, bool bCreatingNewType,
XmlSchema
parentSchema)
1219
if (xtr.NamespaceURI ==
XmlSchema
.Namespace)
1336
internal XmlSchemaElement FindGlobalElement(string namespaceURI, string localName, out
XmlSchema
parentSchema)
1341
foreach(
XmlSchema
schema in col)
System\Xml\Schema\Parser.cs (2)
31
XmlSchema
schema;
140
public
XmlSchema
XmlSchema {
System\Xml\Schema\Preprocessor.cs (46)
26
internal
XmlSchema
schemaToUpdate;
28
public RedefineEntry(XmlSchemaRedefine external,
XmlSchema
schema) {
40
XmlSchema
rootSchema;
41
XmlSchema
currentSchema;
60
XmlSchema
rootSchemaForRedefine = null;
63
static
XmlSchema
builtInSchemaForXmlNS;
86
public bool Execute(
XmlSchema
schema, string targetNamespace, bool loadExternals) {
117
XmlSchema
listSchema;
121
listSchema = (
XmlSchema
)lockList.GetByIndex(schemaIndex);
143
listSchema = (
XmlSchema
)lockList.GetByIndex(schemaIndex);
158
private void Cleanup(
XmlSchema
schema) {
215
internal
XmlSchema
RootSchema {
221
private void BuildSchemaList(
XmlSchema
schema) {
238
private void LoadExternals(
XmlSchema
schema) {
247
XmlSchema
includedSchema = include.Schema;
312
if (typeof(
XmlSchema
).IsAssignableFrom(returnType)) { //To handle XmlSchema and all its derived types
313
include.Schema = (
XmlSchema
)obj;
361
include.Schema = (
XmlSchema
)schemaLocations[ruri]; //Set schema object even for duplicates
367
internal static
XmlSchema
GetBuildInSchema() {
369
XmlSchema
tempSchema = new XmlSchema();
414
Interlocked.CompareExchange<
XmlSchema
>(ref builtInSchemaForXmlNS, tempSchema, null);
419
private void BuildRefNamespaces(
XmlSchema
schema) {
460
private void Preprocess(
XmlSchema
schema, string targetNamespace, ArrayList imports) {
461
XmlSchema
prevRootSchemaForRedefine = null;
494
XmlSchema
externalSchema = include.Schema;
535
XmlSchema
includedSchema = include.Schema;
579
XmlSchema
includedSchema = external.Schema;
688
private void CopyIncludedComponents(
XmlSchema
includedSchema,
XmlSchema
schema) {
716
XmlSchema
originalSchema = redefine.Schema;
728
XmlSchema
schemaToUpdate = redefineEntry.schemaToUpdate;
746
XmlSchema
parentSchema = GetParentSchema(originalGroup);
767
XmlSchema
parentSchema = GetParentSchema(originalAttrGroup);
788
XmlSchema
parentSchema = GetParentSchema(originalType);
812
XmlSchema
parentSchema = GetParentSchema(originalType);
829
private void GetIncludedSet(
XmlSchema
schema, ArrayList includesList) {
844
internal static
XmlSchema
GetParentSchema(XmlSchemaObject currentSchemaObject) {
845
XmlSchema
parentSchema = null;
846
Debug.Assert((currentSchemaObject as
XmlSchema
) == null); //The current object should not be schema
849
parentSchema = currentSchemaObject as
XmlSchema
;
854
private void SetSchemaDefaults(
XmlSchema
schema) {
1739
private Uri ResolveSchemaLocationUri(
XmlSchema
enclosingSchema, string location) {
1750
private
XmlSchema
GetChameleonSchema(string targetNamespace,
XmlSchema
schema) {
1752
XmlSchema
chameleonSchema = (
XmlSchema
)chameleonSchemas[cKey]; //Need not clone if a schema for that namespace already exists
System\Xml\Schema\SchemaCollectionCompiler.cs (3)
20
XmlSchema
schema;
26
public bool Execute(
XmlSchema
schema, SchemaInfo schemaInfo, bool compileContentModel) {
78
internal static void Cleanup(
XmlSchema
schema) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (8)
24
XmlSchema
schema;
50
public bool Execute(
XmlSchema
schema, string targetNamespace, bool loadExternals, XmlSchemaCollection xsc) {
76
private void Cleanup(
XmlSchema
schema) {
120
private void LoadExternals(
XmlSchema
schema, XmlSchemaCollection xsc) {
227
private void BuildRefNamespaces(
XmlSchema
schema) {
251
private void Preprocess(
XmlSchema
schema, string targetNamespace, Compositor compositor) {
414
XmlSchema
includedSchema = include.Schema;
1433
private Uri ResolveSchemaLocationUri(
XmlSchema
enclosingSchema, string location) {
System\Xml\Schema\SchemaSetCompiler.cs (8)
30
XmlSchema
schemaForSchema;
32
public Compiler(XmlNameTable nameTable, ValidationEventHandler eventHandler,
XmlSchema
schemaForSchema, XmlSchemaCompilationSettings compilationSettings) : base(nameTable, null, eventHandler, compilationSettings) {
48
internal void Prepare(
XmlSchema
schema, bool cleanup) {
112
foreach(
XmlSchema
schema in schemasToCompile.Values) {
140
XmlSchema
currentSchema;
144
currentSchema = (
XmlSchema
)schemas.GetByIndex(schemaIndex);
521
XmlSchema
parentSchema = Preprocessor.GetParentSchema(simpleType);
522
if (parentSchema.TargetNamespace !=
XmlSchema
.Namespace) { //If it is not SForS, then error
System\Xml\Schema\XmlSchema.cs (11)
28
[XmlRoot("schema", Namespace=
XmlSchema
.Namespace)]
88
public static
XmlSchema
Read(TextReader reader, ValidationEventHandler validationEventHandler) {
96
public static
XmlSchema
Read(Stream stream, ValidationEventHandler validationEventHandler) {
104
public static
XmlSchema
Read(XmlReader reader, ValidationEventHandler validationEventHandler) {
171
XmlSerializer serializer = new XmlSerializer(typeof(
XmlSchema
));
200
ns.Add("xs",
XmlSchema
.Namespace);
521
internal new
XmlSchema
Clone() {
522
XmlSchema
that = new XmlSchema();
539
internal
XmlSchema
DeepClone() {
540
XmlSchema
that = new XmlSchema();
623
internal void GetExternalSchemasList(IList extList,
XmlSchema
schema) {
System\Xml\Schema\XmlSchemaCollection.cs (19)
103
public
XmlSchema
Add(string ns, string uri) {
109
XmlSchema
schema = null;
121
public
XmlSchema
Add(String ns, XmlReader reader) {
131
public
XmlSchema
Add(String ns, XmlReader reader, XmlResolver resolver) {
162
public
XmlSchema
Add(
XmlSchema
schema) {
167
public
XmlSchema
Add(
XmlSchema
schema, XmlResolver resolver) {
198
public
XmlSchema
this[string ns] {
209
public bool Contains(
XmlSchema
schema) {
254
public void CopyTo(
XmlSchema
[] array, int index) {
260
XmlSchema
schema = e.Current;
305
internal
XmlSchema
Add(string ns, SchemaInfo schemaInfo,
XmlSchema
schema, bool compile) {
309
private
XmlSchema
Add(string ns, SchemaInfo schemaInfo,
XmlSchema
schema, bool compile, XmlResolver resolver) {
373
private
XmlSchema
schema;
385
internal
XmlSchema
Schema {
433
public
XmlSchema
Current {
System\Xml\Schema\XmlSchemaComplexType.cs (5)
358
internal XmlSchemaObject Clone(
XmlSchema
parentSchema) {
459
private static XmlSchemaObjectCollection CloneGroupBaseParticles(XmlSchemaObjectCollection groupBaseParticles,
XmlSchema
parentSchema) {
469
internal static XmlSchemaParticle CloneParticle(XmlSchemaParticle particle,
XmlSchema
parentSchema) {
506
private static XmlSchemaForm GetResolvedElementForm(
XmlSchema
parentSchema, XmlSchemaElement element) {
515
internal static bool HasParticleRef(XmlSchemaParticle particle,
XmlSchema
parentSchema) {
System\Xml\Schema\XmlSchemaElement.cs (1)
319
internal XmlSchemaObject Clone(
XmlSchema
parentSchema) {
System\Xml\Schema\XmlSchemaExternal.cs (2)
18
XmlSchema
schema;
32
public
XmlSchema
Schema {
System\Xml\Schema\XmlSchemaGroup.cs (1)
84
internal XmlSchemaObject Clone(
XmlSchema
parentSchema) {
System\Xml\Schema\XmlSchemaSet.cs (65)
56
XmlSchema
schemaForSchema; //Only one schema for schema per set
279
public
XmlSchema
Add(String targetNamespace, String schemaUri) {
286
XmlSchema
schema = null;
319
public
XmlSchema
Add(String targetNamespace, XmlReader schemaDocument) {
327
XmlSchema
schema = null;
374
XmlSchema
currentSchema;
382
foreach(
XmlSchema
schema in schemas.SortedSchemas.Values) {
398
foreach(
XmlSchema
schema in schemas.SortedSchemas.Values) { //Remove all previously added schemas from the set
416
public
XmlSchema
Add(
XmlSchema
schema) {
429
public
XmlSchema
Remove(
XmlSchema
schema) {
434
public bool RemoveRecursive(
XmlSchema
schemaToRemove) {
460
XmlSchema
mainSchema;
462
mainSchema = (
XmlSchema
)schemas.GetByIndex(i);
472
mainSchema = (
XmlSchema
)needToCheckSchemaList[i];
486
XmlSchema
impSchema = (
XmlSchema
)schemaToRemove.ImportedSchemas[i];
504
public bool Contains(
XmlSchema
schema) {
538
XmlSchema
currentSchema;
539
XmlSchema
xmlNSSchema = Preprocessor.GetBuildInSchema();
541
currentSchema = (
XmlSchema
)schemas.GetByIndex(schemaIndex);
577
XmlSchema
currentSchema;
582
currentSchema = (
XmlSchema
)schemas.GetByIndex(i);
600
public
XmlSchema
Reprocess(
XmlSchema
schema) {
612
XmlSchema
originalSchema = schema;
658
XmlSchema
s = (
XmlSchema
)schema.ImportedSchemas[i];
683
public void CopyTo(
XmlSchema
[] schemas, int index) {
705
XmlSchema
currentSchema;
710
currentSchema = (
XmlSchema
)schemas.GetByIndex(i);
720
private
XmlSchema
Add(string targetNamespace,
XmlSchema
schema) {
831
XmlSchema
schema;
847
XmlSchema
impSchema = (
XmlSchema
)schema.ImportedSchemas[i];
861
internal
XmlSchema
FindSchemaByNSAndUrl(Uri schemaUri, string ns, DictionaryEntry[] locationsTable) {
865
XmlSchema
schema = null;
867
schema = (
XmlSchema
)schemaLocations[schemaUri];
872
schema = (
XmlSchema
)locationsTable[i].Value;
889
schema = (
XmlSchema
)chameleonSchemas[cKey]; //Need not clone if a schema for that namespace already exists
910
private void AddSchemaToSet(
XmlSchema
schema) {
930
XmlSchema
s = (
XmlSchema
)schema.ImportedSchemas[i];
1000
internal
XmlSchema
Remove(
XmlSchema
schema, bool forceCompile) {
1046
internal bool PreprocessSchema(ref
XmlSchema
schema, string targetNamespace) {
1057
internal
XmlSchema
ParseSchema(string targetNamespace, XmlReader reader) {
1074
XmlSchema
currentSchema;
1082
currentSchema = (
XmlSchema
)copyFromList.GetByIndex(i);
1127
foreach (
XmlSchema
schemaToRemove in copyFromList.Values) {
1133
if(!existingSchemas.Contains((
XmlSchema
)elementToRemove.Parent)) {
1138
if(!existingSchemas.Contains((
XmlSchema
)attributeToRemove.Parent)) {
1143
if(!existingSchemas.Contains((
XmlSchema
)schemaTypeToRemove.Parent)) {
1181
internal bool IsSchemaLoaded(Uri schemaUri, string targetNamespace, out
XmlSchema
schema) {
1191
XmlSchema
chameleonSchema = FindSchemaByNSAndUrl(schemaUri, targetNamespace, null);
1213
internal bool GetSchemaByUri(Uri schemaUri, out
XmlSchema
schema) {
1218
schema = (
XmlSchema
)schemaLocations[schemaUri];
1225
internal string GetTargetNamespace(
XmlSchema
schema) {
1243
private void RemoveSchemaFromCaches(
XmlSchema
schema) {
1245
List<
XmlSchema
> reprocessList = new List<
XmlSchema
>();
1271
private void RemoveSchemaFromGlobalTables(
XmlSchema
schema) {
1316
XmlSchema
schemaForXmlNS = Preprocessor.GetBuildInSchema();
System\Xml\Schema\XmlSchemaValidator.cs (3)
292
public void AddSchema(
XmlSchema
schema) {
322
XmlSchema
impSchema = (
XmlSchema
)schema.ImportedSchemas[i];
System\Xml\Schema\XsdBuilder.cs (2)
634
private
XmlSchema
schema;
678
XmlSchema
schema,
System\Xml\Schema\XsdValidator.cs (1)
131
XmlSchema
schema = inlineSchemaParser.XmlSchema;
System\Xml\Serialization\ImportContext.cs (7)
242
foreach(
XmlSchema
s in schemas) {
259
if (o.Parent is
XmlSchema
) {
260
string ns = ((
XmlSchema
)o.Parent).TargetNamespace;
261
if (ns ==
XmlSchema
.Namespace)
271
if (item.Parent is
XmlSchema
) {
363
if (baseType == null && !baseName.IsEmpty && baseName.Namespace !=
XmlSchema
.Namespace)
381
if (el.SubstitutionGroup.Namespace !=
XmlSchema
.Namespace) {
System\Xml\Serialization\IXmlSerializable.cs (1)
19
XmlSchema
GetSchema();
System\Xml\Serialization\Mappings.cs (7)
932
XmlSchema
schema;
995
foreach (
XmlSchema
s in schemas.Schemas()) {
1041
internal
XmlSchema
Schema {
1079
if (element.Parent == null || !(element.Parent is
XmlSchema
))
1163
if (xsiType.Namespace !=
XmlSchema
.Namespace) {
1172
XmlSchema
s = (
XmlSchema
)srcSchemas[0];
System\Xml\Serialization\SchemaImporter.cs (3)
45
if (!schemas.Contains(
XmlSchema
.Namespace)) {
170
mapping.Namespace =
XmlSchema
.Namespace;
192
if (name.Namespace ==
XmlSchema
.Namespace)
System\Xml\Serialization\SchemaObjectWriter.cs (4)
120
while (o != null && !(o is
XmlSchema
)) {
123
return o == null ? "" : ((
XmlSchema
)o).TargetNamespace;
255
if (o.Parent != null && !(o.Parent is
XmlSchema
)) {
821
if (o.Parent != null && !(o.Parent is
XmlSchema
)) {
System\Xml\Serialization\SoapReflectionImporter.cs (8)
188
TypeDesc td = typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
190
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidXsdDataType, dataType, "SoapElementAttribute.DataType", new XmlQualifiedName(dataType,
XmlSchema
.Namespace).ToString()));
220
TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
243
mapping.Namespace =
XmlSchema
.Namespace;
456
itemTypeNamespace = itemTypeMapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
462
itemTypeNamespace =
XmlSchema
.Namespace;
504
mapping.TypeDesc = typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
517
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
System\Xml\Serialization\SoapSchemaExporter.cs (10)
90
XmlSchema
schema = schemas[newNamespace];
103
XmlSchema
schema = schemas[ns];
122
XmlSchema
schema = schemas[referencingNs];
132
XmlSchema
schema = schemas[ns];
139
XmlSchemaImport FindImport(
XmlSchema
schema, string ns) {
187
return new XmlQualifiedName(mapping.TypeDesc.DataType.Name,
XmlSchema
.Namespace);
216
qname = new XmlQualifiedName(Soap.UrType,
XmlSchema
.Namespace);
230
if (qname.Namespace !=
XmlSchema
.Namespace)
273
return new XmlQualifiedName(Soap.UrType,
XmlSchema
.Namespace);
360
restriction.BaseTypeName = new XmlQualifiedName("string",
XmlSchema
.Namespace);
System\Xml\Serialization\SoapSchemaImporter.cs (3)
213
foreach (
XmlSchema
schema in Schemas) {
229
if (name.Name == Soap.UrType && name.Namespace ==
XmlSchema
.Namespace)
635
if (name.Namespace ==
XmlSchema
.Namespace)
System\Xml\Serialization\Types.cs (31)
486
AddNonXsdPrimitive(typeof(Guid), "guid", UrtTypes.Namespace, "Guid", new XmlQualifiedName("string",
XmlSchema
.Namespace), new XmlSchemaFacet[] { guidPattern }, TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.IgnoreDefault);
487
AddNonXsdPrimitive(typeof(char), "char", UrtTypes.Namespace, "Char", new XmlQualifiedName("unsignedShort",
XmlSchema
.Namespace), new XmlSchemaFacet[0], TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.IgnoreDefault);
490
AddNonXsdPrimitive(typeof(TimeSpan), "TimeSpan", UrtTypes.Namespace, "TimeSpan", new XmlQualifiedName("duration",
XmlSchema
.Namespace), new XmlSchemaFacet[0], TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
543
AddSoapEncodedPrimitive(typeof(string), "normalizedString", ns, "String", new XmlQualifiedName("normalizedString",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.Reference | TypeFlags.HasDefaultConstructor);
545
AddSoapEncodedPrimitive(typeof(string), unsupportedTypes[i], ns, "String", new XmlQualifiedName(unsupportedTypes[i],
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.Reference | TypeFlags.CollapseWhitespace);
548
AddSoapEncodedPrimitive(typeof(string), "string", ns, "String", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.CanBeTextValue | TypeFlags.Reference);
549
AddSoapEncodedPrimitive(typeof(int), "int", ns, "Int32", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
550
AddSoapEncodedPrimitive(typeof(bool), "boolean", ns, "Boolean", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
551
AddSoapEncodedPrimitive(typeof(short), "short", ns, "Int16", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
552
AddSoapEncodedPrimitive(typeof(long), "long", ns, "Int64", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
553
AddSoapEncodedPrimitive(typeof(float), "float", ns, "Single", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
554
AddSoapEncodedPrimitive(typeof(double), "double", ns, "Double", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
555
AddSoapEncodedPrimitive(typeof(decimal), "decimal", ns, "Decimal", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
556
AddSoapEncodedPrimitive(typeof(DateTime), "dateTime", ns, "DateTime", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired);
557
AddSoapEncodedPrimitive(typeof(XmlQualifiedName), "QName", ns, "XmlQualifiedName", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.HasCustomFormatter | TypeFlags.HasIsEmpty | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired | TypeFlags.Reference);
558
AddSoapEncodedPrimitive(typeof(byte), "unsignedByte", ns, "Byte", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
559
AddSoapEncodedPrimitive(typeof(SByte), "byte", ns, "SByte", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
560
AddSoapEncodedPrimitive(typeof(UInt16), "unsignedShort", ns, "UInt16", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
561
AddSoapEncodedPrimitive(typeof(UInt32), "unsignedInt", ns, "UInt32", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
562
AddSoapEncodedPrimitive(typeof(UInt64), "unsignedLong", ns, "UInt64", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.XmlEncodingNotRequired);
565
AddSoapEncodedPrimitive(typeof(DateTime), "date", ns, "Date", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired);
566
AddSoapEncodedPrimitive(typeof(DateTime), "time", ns, "Time", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.XmlEncodingNotRequired);
568
AddSoapEncodedPrimitive(typeof(string), "Name", ns, "XmlName", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
569
AddSoapEncodedPrimitive(typeof(string), "NCName", ns, "XmlNCName", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
570
AddSoapEncodedPrimitive(typeof(string), "NMTOKEN", ns, "XmlNmToken", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
571
AddSoapEncodedPrimitive(typeof(string), "NMTOKENS", ns, "XmlNmTokens", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.AmbiguousDataType | TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.HasCustomFormatter | TypeFlags.Reference);
573
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);
574
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);
576
AddSoapEncodedPrimitive(typeof(string), "arrayCoordinate", ns, "String", new XmlQualifiedName("string",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue);
577
AddSoapEncodedPrimitive(typeof(byte[]), "base64", ns, "ByteArrayBase64", new XmlQualifiedName("base64Binary",
XmlSchema
.Namespace), TypeFlags.CanBeAttributeValue | TypeFlags.CanBeElementValue | TypeFlags.IgnoreDefault | TypeFlags.Reference);
587
primitiveNames.Add(dataTypeName,
XmlSchema
.Namespace, typeDesc);
System\Xml\Serialization\XmlReflectionImporter.cs (10)
355
TypeDesc td = typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
357
throw new InvalidOperationException(Res.GetString(Res.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType,
XmlSchema
.Namespace).ToString()));
390
TypeDesc valueTypeDesc = string.IsNullOrEmpty(dataType) ? model.TypeDesc.BaseTypeDesc : typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
519
if (baseQname.Namespace ==
XmlSchema
.Namespace) return;
529
XmlSchema
s = (
XmlSchema
)srcSchemas[0];
565
mapping.Namespace =
XmlSchema
.Namespace;
915
ns = itemTypeMapping.Namespace ==
XmlSchema
.Namespace ? defaultNs : itemTypeMapping.Namespace;
1016
mapping.TypeDesc = typeScope.GetTypeDesc(dataType,
XmlSchema
.Namespace);
1029
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
System\Xml\Serialization\XmlSchemaExporter.cs (20)
145
XmlSchema
schema = schemas[ns];
187
XmlSchema
schema = schemas[ns];
249
XmlSchema
schema = schemas[newNamespace];
260
XmlSchema
AddSchema(string targetNamespace) {
261
XmlSchema
schema = new XmlSchema();
274
XmlSchema
schema = schemas[ns];
298
XmlSchema
schema = schemas[referencingNs];
319
XmlSchema
schema = schemas[ns];
326
XmlSchemaImport FindImport(
XmlSchema
schema, string ns) {
428
foreach (
XmlSchema
schema in serializableMapping.Schemas.Schemas()) {
429
if (schema.TargetNamespace !=
XmlSchema
.Namespace) {
444
foreach (
XmlSchema
schema in serializableMapping.Schemas.Schemas()) {
445
if (schema.TargetNamespace !=
XmlSchema
.Namespace) {
470
XmlSchema
existingSchema = schemas[anyNs];
488
schemaElement.RefName = new XmlQualifiedName("schema",
XmlSchema
.Namespace);
493
AddSchemaImport(
XmlSchema
.Namespace, ns);
532
qname = new XmlQualifiedName(mapping.TypeDesc.DataType.Name,
XmlSchema
.Namespace);
664
XmlSchema
schema = schemas[ns];
749
XmlSchema
schema = schemas[ns];
1018
restriction.BaseTypeName = new XmlQualifiedName("string",
XmlSchema
.Namespace);
System\Xml\Serialization\XmlSchemaImporter.cs (20)
80
mapping.TypeDesc = Scope.GetTypeDesc("string",
XmlSchema
.Namespace, flags);
82
mapping.Namespace =
XmlSchema
.Namespace;
206
XmlSchema
schema = xso.Parent as
XmlSchema
;
311
accessor.IsTopLevelInSchema = element.Parent is
XmlSchema
;
448
foreach (
XmlSchema
schema in Schemas) {
464
if (name.Name == Soap.UrType && name.Namespace ==
XmlSchema
.Namespace)
482
if (addref && name.Namespace !=
XmlSchema
.Namespace)
1015
foreach (
XmlSchema
schema in Schemas.SchemaSet.Schemas()) {
1561
if (restriction.BaseTypeName.Namespace !=
XmlSchema
.Namespace)
1684
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : UrtTypes.Namespace;
1697
mapping.Namespace = mapping.TypeDesc.IsXsdType ?
XmlSchema
.Namespace : ns;
1732
return new XmlQualifiedName("string",
XmlSchema
.Namespace);
1744
if (qname.Namespace !=
XmlSchema
.Namespace)
1761
if (name.Namespace ==
XmlSchema
.Namespace)
1762
return (XmlSchemaSimpleType)Scope.GetTypeDesc("string",
XmlSchema
.Namespace, flags).DataType;
1805
XmlSchema
schema = parent as
XmlSchema
;
1863
XmlSchema
schema = parent as
XmlSchema
;
System\Xml\Serialization\XmlSchemas.cs (57)
30
public class XmlSchemas : CollectionBase, IEnumerable<
XmlSchema
> {
38
static volatile
XmlSchema
xsd;
39
static volatile
XmlSchema
xml;
45
public
XmlSchema
this[int index] {
46
get { return (
XmlSchema
)List[index]; }
54
public
XmlSchema
this[string ns] {
60
return (
XmlSchema
)values[0];
108
internal int Add(
XmlSchema
schema, bool delay) {
123
public int Add(
XmlSchema
schema) {
133
public int Add(
XmlSchema
schema, Uri baseUri) {
146
foreach (
XmlSchema
schema in schemas) {
155
public void AddReference(
XmlSchema
schema) {
163
public void Insert(int index,
XmlSchema
schema) {
171
public int IndexOf(
XmlSchema
schema) {
179
public bool Contains(
XmlSchema
schema) {
195
public void Remove(
XmlSchema
schema) {
203
public void CopyTo(
XmlSchema
[] array, int index) {
212
AddName((
XmlSchema
)value);
220
RemoveName((
XmlSchema
)value);
236
RemoveName((
XmlSchema
)oldValue);
237
AddName((
XmlSchema
)newValue);
240
void AddName(
XmlSchema
schema) {
250
void Prepare(
XmlSchema
schema) {
266
void RemoveName(
XmlSchema
schema) {
279
foreach (
XmlSchema
schema in List) {
286
foreach (
XmlSchema
schema in values) {
327
IEnumerator<
XmlSchema
> IEnumerable<
XmlSchema
>.GetEnumerator() {
331
internal static void Preprocess(
XmlSchema
schema) {
349
public static bool IsDataSet(
XmlSchema
schema) {
366
void Merge(
XmlSchema
schema) {
381
foreach(
XmlSchema
s in schemas) {
397
void Merge(IList originals,
XmlSchema
schema) {
398
foreach (
XmlSchema
s in originals) {
446
XmlSchema
destination = (
XmlSchema
)originals[0];
496
while (o.Parent != null && !(o.Parent is
XmlSchema
)) {
504
if (tmp is
XmlSchema
) {
505
ns = ((
XmlSchema
)tmp).TargetNamespace;
553
else if (o is
XmlSchema
) {
571
ns.Add("xs",
XmlSchema
.Namespace);
589
foreach (
XmlSchema
s in originals) {
609
foreach(
XmlSchema
s in delayedSchemas.Values)
618
foreach (
XmlSchema
s in References.Values)
622
foreach (
XmlSchema
s in List) {
629
if (!SchemaSet.Contains(
XmlSchema
.Namespace)) {
651
foreach (
XmlSchema
schema in SchemaSet.Schemas()) {
672
if (source is
XmlSchema
) {
673
ns = ((
XmlSchema
)source).TargetNamespace;
684
internal static
XmlSchema
XsdSchema {
687
xsd = CreateFakeXsdSchema(
XmlSchema
.Namespace, "schema");
693
internal static
XmlSchema
XmlSchema {
696
xml =
XmlSchema
.Read(new StringReader(xmlSchema), null);
702
private static
XmlSchema
CreateFakeXsdSchema(string ns, string name) {
710
XmlSchema
schema = new XmlSchema();
757
public class XmlSchemaEnumerator : IEnumerator<
XmlSchema
>, System.Collections.IEnumerator {
778
public
XmlSchema
Current {
System\Xml\Serialization\XmlSerializationReader.cs (6)
143
schemaNsID = r.NameTable.Add(
XmlSchema
.Namespace);
147
instanceNsID = r.NameTable.Add(
XmlSchema
.InstanceNamespace);
209
object ns = r.NameTable.Add(
XmlSchema
.Namespace);
1620
typens =
XmlSchema
.Namespace;
1719
XmlQualifiedName urType = new XmlQualifiedName(urTypeID, r.NameTable.Add(
XmlSchema
.Namespace));
3052
Writer.WriteLine("return ReadTypedPrimitive(new System.Xml.XmlQualifiedName(\"" + Soap.UrType + "\", \"" +
XmlSchema
.Namespace + "\"));");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
1478
ilg.Ldstr(
XmlSchema
.Namespace);
System\Xml\Serialization\XmlSerializationWriter.cs (9)
162
WriteAttribute("type",
XmlSchema
.InstanceNamespace, GetQualifiedName(name, ns));
178
string typeNs =
XmlSchema
.Namespace;
222
string typeNs =
XmlSchema
.Namespace;
320
w.WriteStartElement(Soap.UrType,
XmlSchema
.Namespace);
347
w.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, "true");
520
w.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, "true");
534
w.WriteAttributeString("nil",
XmlSchema
.InstanceNamespace, "true");
1071
typeNs =
XmlSchema
.Namespace;
1098
typeNs =
XmlSchema
.Namespace;
System\Xml\Serialization\XmlSerializer.cs (2)
118
nss.AddInternal("xsi",
XmlSchema
.InstanceNamespace);
119
nss.AddInternal("xsd",
XmlSchema
.Namespace);
System.Xml.Linq (1)
System\Xml\Linq\XLinq.cs (1)
4944
XmlSchema
IXmlSerializable.GetSchema() {