AddSchema Method
The AddSchema method adds a new schema to the XML schema cache and associates the given namespace Uniform Resource Identifier (URI) with the specified schema.
This method has the following syntax:
integer = XMLSchemaCache.AddSchema(
urllocation = varchar(2000) not null
[, namespaceuri = varchar(2000) not null])
This method has the following parameters:
urllocation
(Required) Specifies the URL or file name of the XML schema to be added
namespaceuri
Specifies the namespace URI for the specified schema. If this parameter is omitted, the schema will be added to the empty namespace.
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL. Descriptions of system constant values and their numeric equivalents are listed in
Error Codes (see
Error Codes).