Returns an ISchema
object. The schema contains the namespace URI specified in the namespaceURI
parameter that is passed to this method. The ISchema
interface can be used to further obtain information about the schema object that is returned.
The following example shows the getSchema
method being used to return a schema object.
Dim oSchemaCache as New IXMLDOMSchemaCollection2 Dim oSchema as ISchema Dim nsTarget as String nsTarget = "http://www.example.microsoft.com" oSchemaCache.add nsTarget, PO.xsd Set oSchema = oSchemaCache.getSchema(nsTarget)
var oSchema = oSchemaCache.getSchema(strNamespaceURI);
getSchema
method.Set oSchema = oSchemaCache.getSchema(strNamespaceURI)
HRESULT getSchema(BSTR namespaceURI, ISchema** schema);
To view reference information for Visual Basic or C/C++ only, click the Language Filter button in the upper-left corner of the page.
ISchema interface | Using Namespaces in Schemas
Applies to: IXMLDOMSchemaCollection2