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