XML Views - Get Definition (Magic xpa 3.x)
When the Get Definition utility (F9) is activated from a single line in the Data repository for an XML database, the Load Table Definition dialog box contains the Schema URL field. This field is for the location of the schema to be loaded (either a file location or a URL). When the Get Definition utility is activated from a single line on an XML data entry that is already defined, the XML-view reloading box opens.
When the Get Definition utility is activated from the top of the Data repository (# column), the XML tab in the Load Data Source Definition dialog box contains the following fields:
|
|
Database
|
An XML database as defined in the Database repository. Zoom and select a database from the Database list.
|
Schema URL
|
The location of the schema that will be loaded (either a file location or a URL).
|
Root element
|
Displays the name of the schema root element. This is a read-only field.
|
Template programs
|
Determines which programs will be generated. The available options are: All (both Create and Scan), Create (a program for creating an XML document), Scan (a program that scans the XML and retrieves data), and None.
|
Fill XML with values
|
By selecting this check box, the generated 'Create XML' program will include additional Update operations for entering sample data.
This field is enabled only if the ‘Template Programs’ field is set to ‘All’ or ‘Create’.
|
Reload existing views
|
By selecting this check box, you instruct Magic xpa to reload a schema and all related views will be updated.
When reloading the XML views, Magic xpa resets them to their defaults (the original state when they were loaded) or updates the view (when elements are added or removed).
|
Insert to folder
|
The name of the folder that will include the generated data entries and programs.
Default value: The name of the root element.
If empty, the views/programs will be generated without a folder.
|
Note: The generated programs include TODO comments. The developer should replace these comments with operations for reading and updating data.
To restrict the number of complex elements parsed from a schema (XML views), use the SpecialSchemaSizeLimit setting.
How Do I Create an XML View?