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