4D v16.3

EXPORT STRUCTURE

Home

 
4D v16.3
EXPORT STRUCTURE

EXPORT STRUCTURE 


 

EXPORT STRUCTURE ( xmlStructure ) 
Parameter Type   Description
xmlStructure  Text variable in Export of XML definition of 4D database structure

The EXPORT STRUCTURE command exports, in xmlStructure, the structure definition of the current 4D database in XML format. This command uses the same mechanisms as the Export > Structure definition to XML file... menu item found in 4D's Design mode (see Exporting and importing structure definitions).

In xmlStructure, you pass the text variable intended to store the structure definition. The exported definition includes tables, fields, indexes, and relations, as well as their attributes and any characteristics necessary for a complete description of the structure. Invisible elements are exported with the corresponding attribute. However, deleted elements are not exported. 

The internal "grammar" of 4D structure definitions is documented by means of DTD files — also used for the validation of XML files. The DTD files used by 4D are grouped together in the DTD folder, found next to the 4D application. The base_core.dtd and common.dtd files are used for structure definitions. For more information, you can consult these files along with the comments they contain.

Example  

You want to export the current database structure in a text file:

 C_TEXT($vTStruc)
 EXPORT STRUCTURE($vTStruc)
 TEXT TO DOCUMENT("myStructure.xml";$vTStruc)



See also 

IMPORT STRUCTURE

 
PROPERTIES 

Product: 4D
Theme: Structure Access
Number: 1311

 
HISTORY 

Created: 4D v14 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)