XmlSchemaExternal.SchemaLocation Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the Uniform Resource Identifier (URI) location for the schema, which tells the schema processor where the schema physically resides.

Namespace:   System.Xml.Schema
Assembly:  System.Xml (in System.Xml.dll)

public string SchemaLocation { get; set; }

Property Value

Type: System.String

The URI location for the schema.

Optional for imported schemas.

Imported schemas that do not have this attribute allow the imported schema's namespace to be determined by the XML document that is an instance of the containing schema or the application that is processing the schema.

Included schemas use this attribute as the URI reference to the location of a schema document that should be included in the target namespace of the containing schema.

.NET Framework
Available since 1.1
Return to top
Show: