XMLAddSchema 

Description:           This function adds a schema to an XML Processor.

Returns:                    Numeric

Usage:                       Script

Format:                 XMLAddSchema(XMLProcessorHandle, NamespaceURI, URL[, ErrorMessageOut])

Parameters:          XMLProcessorHandle     { XML Handle }  { required }  { no default: }

                                                A valid processor, as returned by the function XMLProcessor.

                                    NamespaceURI     { text }  { required }  { no default: }

                                                A URI that specifies the namespace that the schema represents. 

                                    URL     { text }  { required }  { no default: }

                                                The URL to fetch the schema from.

                             ErrorMessageOut     { text (return value) }  { optional }  { no default: }

                                                An optional text parameter that allows an error message to be returned from the function.

Comments:            Each schema will be validated for standards conformance before being added to the cache.  Returns 0 if it succeeds, otherwise it returns a numeric specifying a Windows error code and sets the variable named in the optional ErrorMessageOut parameter to a text error message.  If the schema load succeeds, the types identified by the schema are added to the factory.

 

SeeAlso:

MakeTypeInstance | XMLProcessor | XMLParse | XMLWrite