Predefined variables
After a Schema file is analyzed by the code generator, the objects in the table below exist in the Template Engine.
Name | Type | Description |
---|---|---|
$schematype | integer | 1 for DTD, 2 for XML Schema |
$TheLibrary | The library derived from the XML Schema or DTD | |
$module | string | Name of the source Schema without extension |
$outputpath | string | The output path specified by the user, or the default output path |
For C++ generation only:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$domtype | integer | 1 for MSXML, 2 for Xerces | ||||||||||||
$libtype | integer | 1 for static LIB, 2 for DLL | ||||||||||||
$mfc | boolean | True if MFC support is enabled | ||||||||||||
$VSVersion | integer | Specifies the Visual Studio version. Valid values:
|
For C# generation only:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
$VSVersion | integer | Specifies the Visual Studio version. Valid values:
|