Optimizing the loading of a layout

In the event of having a large XML layout to be loaded as a source or destination while creating a mapping, it may take a lot more time than expected. In this case, you may need to optimize the loading of the layout.

By default, the loading of an XML layout is configured to be optimized in Web Mapper. However, you can modify the configured settings based on your requirements while you are creating a mapping.

When you optimize the loading of the layout, it means it processes only the root level element, not the complete XSD, if the XSD is complex. When you expand the hierarchy elements, it processes child elements and loads them into memory. The hierarchy elements expansion is now displayed in the Web Mapper. With default settings, it optimizes the processing of XML layouts and loads the XSD elements up to 3 levels in the source and destination panels. You need to click a hierarchy element to load its child elements.

Optimization of layout loading is only applicable on XML layouts.

It is recommended that you check for the optimization settings before you start loading the layouts. It should be as per the default settings.

You can change the optimization setting even when you are in the middle of mapping the fields. To implement the changes, save the data mapping and open it again in edit mode to work on it.

In case, the default setting has been changed to disable the optimization, the steps below guide you on how to enable the optimization settings for loading of a layout:

  1. Ensure that all the source and destination layouts are loaded and all their elements are listed under their respective nodes.
  2. Go to Open > Preferences.

  3. On the Preferences screen, click XML Layout on the left pane.



  4. Select the On demand (optimized) loading of XML Layout Tree check box to enable the optimization of layout loading. 
  5. In Tree expand level box, set the value based on your requirements to define the hierarchy level up to which the source and destination files will be displayed for the layouts in the Web Mapper. By default, the value is set to 3. 
  6. applies to all XML Schema which uses XSD.
  7. In Tree expand level for root hierarchy box, set the value to define the root hierarchy level up to which the source and destination files will process the layout to load it into the Web Mapper. By default, the value is set to 5. 
  8. In Tree expand level for extension elements box, set the value to define the level up to which extension elements will be loaded when you click on a node on the tree. By default, the value is set to 10. 
  9. In Self recursion level box, set the value based on your requirements. By default, the value is set to 0. 

    In case of a complex element of a specific node type with self recursion defined as 0, it restricts a child element to expand further if it is of the same type of node as that of the parent node. You can change the value of the self recursion level based on your requirement. This setting is useful when optimization of loading for XML layout is off.

    By default, Enable types buffering option is enabled for the optimization of layout loading. Buffering of node types helps eliminate the need for processing the same type of elements again as one instance of that type is processed and buffered for further use.


  10. Click Done.