Official 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

Scope

Extended Data Types: XmlReader
Generators: .NET, Java

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.

See Also

ValidationType
XmlReader Data Type







Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant