Using a Natural Data Source

This function enables you to generate an XML document from a data definition held in a Natural local, global or parameter data area.

The following topics are covered:

See also:


Select Natural Data Area

This screen serves to select LDA, GDA or PDA as input Data Area.

Anmerkung:
The entries shown in the dialogs below are default or example values.

 08:07:48               ***** NATURAL XML Toolkit *****               2007-01-18
                  - Generate from Natural Data Structure -       Library SYSEXXT

         
                                                                                       
                                                                              
  Select LDA, GDA or PDA as input Data Area.                                   
                                                                               
  Press 'Next' to read the Data Area.                                          
                                                                               
  Select a Level 1 group that should be used for further generations.          
                                                                     
                                                                               
  Select Data Area for generation                                              
  Library:  Type: Name:                                                        
  SYSEXXT_  L     ________





                                                                           
                                                                               
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help        Exit                          Next                    Canc

Field Descriptions

Library

Belongs to Group: Select Input Data Area
Format/Length: A8
Default Value: (All libraries)

Type

Belongs to Group: Select Input Data Area
Format/Length: A1
Possible Values:
L - Local Data Area
A - Parameter Data Area
G - Global Data Area

Name

Belongs to Group: Select Input Data Area
Format/Length: A8
Default Value: (All objects of the selected library and type)

Press PF8 to continue.

Select Root Group

This screen is used to select the data type.

 10:18:34                 *** NATURAL XML Toolkit ***               2007-01-18
                             - Select Root Group -             Library SYSEXXT
                                                                              
  Root groups                                                                 
  X EMPLOYEE
  _
  _
  _
  _
  _
  _
  _
  _
  _
  _
  _
  _
  _
  _

Field Descriptions

Format/Length: A1
Default Value: (All groups on Level 1)

Mark the desired element, e.g. EMPLOYEE with an X and press ENTER .

Press PF8 to continue.

Generate File with DTD Definition

This screen serves to generate a file with the DTD definition of a given group.

11:14:49               ***** NATURAL XML Toolkit *****                2007-01-18
                  - Generate from Natural Data Structure -       Library SYSEXXT
                                                                               
                                                                               
                                                                               
  Generate file with the dtd definition of a given group.                      
                                                                               
  Specify a File Name and Press 'Next' to start the generation.                
                                                                               
  Press 'Next' to ignore this generation.                                      
                                                                               
                                                                               
                                                                               
  Select output for DTD file:                                                  
  $NATDIR/$NATVERS/vr/samples/sysexxt/empl.dtd_______________________________  
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
 Serialize Copycode generation done.                                           
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help        Exit                    Prev  Next                    Canc
Format/Length: A253

Press PF8 to continue.

Generate a parser for an XML document

This screen is used to generate copycode as implementation for the serialization of the given group into an XML document.

 10:56:06               ***** NATURAL XML Toolkit *****               2007-01-18
                   - Generate from Natural Data Structue -       Library SYSEXXT
                                                                               
                                                                               
                                                                               
  Generate Copycode as implemention for the serialization of the given         
  group into a XML document.                                                   
                                                                               
  Specify a Name and Press 'Next' to start the generation.                     
                                                                               
  Press 'Next' to ignore this generation.                                      
                                                                               
  Select output for Serialize Copycode                                         
  Library:  Type: Name:                                                        
  SYSEXXT_ C     ________                                                     
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
 Parse Copycode generation done.                                               
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help        Exit                    Prev  Next                    Canc

Generates the parser CALLBACK copycode. See also Parser CALLBACK Copycode (in the Examples document).

Field Descriptions

Library

Belongs to Group: Select Output Copycode
Format/Length: A8
Default Value: (All libraries)

Type

Belongs to Group: Select Output Copycode
Format/Length: A21
Default Value: Copycode

Name

Belongs to Group: Select Output Copycode
Format/Length: A8
Default Value: (All objects of the selected library and type)

Press PF8 to continue.

Show Generation Report

After the generation is complete, the generation report is displayed.

11:48:29               ***** NATURAL XML Toolkit *****               2007-01-18
                 - Generate from Natural Data Structure -       Library SYSEXXT
                                                                               
  Generation Results                                                           
  Generate for Data Area                                                       
    Library ..: SYSEXXT                                                        
    Object ...: EMPL                                                           
    Read Data Area done.                                                       
  Parser (Callback) Copycode                                                   
    Library ..: SYSEXXT                                                        
    Source ...: A1                                                             
    Parse Copycode generation done.                                            
  Serialize (Compress XML) Copycode                                            
    Library ..: SYSEXXT                                                        
    Source ...: A2                                                             
    Serialize Copycode generation done.                                        
  File with dtd Definition                                                     
    File .....: $NATDIR/$NATVERS/vr/samples/sysexxt/esi.dtd                  
    Generate DTD file.                                                         
                                                                               
 Generation done.                                                              
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help        Exit                    Prev        Finis             Canc

Field Descriptions

Summary

Format/Length: A253/1:v

Press PF9 Finis(h) to end the generation process.