Recents
AddSchema MethodOfficial Content
Indicates the schema that will be used to validate the XML.

Syntax

&DataType.AddSchema(URL, [ Namespace ] )

Where:
URL
URL of the schema

Namespace
Namespace of the xml to be validated

Description

It indicates the “schema” that will be used to validate the XML in the indicated Namespace.
If the Namespace is not indicated, then that of the scheme's targetNamespace attribute is taken. 
Whatever is indicated in this method has priority over the XML document's schemaLocation attribute (to the extent it exists). 
To use this method, you must indicate, in the ValidationType property, that either the validation by scheme or the automatic validation is to be carried out.

Scope

Extended Data Types: XmlReader
Languages: .NET, Java

See Also

ValidationType
XmlReader Data Type




Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.