schemaLocations Property
Returns a string collection. This collection contains all of the URIs that are imported to or included in the XML Schema object being used. Each URI in the XML Schema is represented by a string item in the collection. The URI text is retrieved by using the item
property of the ISchemaStringCollection
.
Example
The following VBScript example shows how to lists the URIs of the imported or included XML Schemas.
Set oSchemaCache = CreateObject("Msxml2.XMLSchemaCache.5.0") oSchemaCache.add "", "po.xsd" Set oSchema = oSchemaCache.getSchema("") For Each oURI in oSchema.schemaLocations WScript.Echo oURI Next
[Script]
Implementation Syntax
var oSchemaLocations = oISchema.schemaLocations;
Parameters
None.
Return Values
- OSchemaLocations
- An object. The collection of XML Schema URIs imported to or included in this XML Schema. This collection contains strings that contain the schema URIs.
[Visual Basic]
Implementation Syntax
Set oSchemaLocations = oISchema.schemaLocations
Parameters
None.
Return Values
- oSchemaLocations
- An object. The collection of XML Schema URIs imported to or included in this XML Schema. This collection contains strings that contain the schema URIs.
[C/C++]
Implementation Syntax
HRESULT get_schemaLocations (ISchemaStringCollection** schemaLocations);
Parameters
- schemaLocations [out,retval]
- An object. The collection of schema URIs.
Return Values
- S_OK
- The value returned if successful.
- E_Pointer
- The value returned if the
schemaLocations
collection is NULL. - E_FAIL
- The value returned if something else is wrong.
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
See Also
ISchemaStringCollection Interface | Using Other Namespaces
Applies to: ISchema Interface