Chapter 4 Working with an XML model


Generating and updating an XML model

The General page of the XML Model Generation Options dialog box displays the following options:

Generate new XML model

You must indicate the following parameters when you generate a new XML model:

Parameter Description
XML language Target XML language
Share XML language for the resulting XML model. It uses a shared XML language definition file stored in the XML Languages library
Copy XML language for the resulting XML model. It uses a copy of the XML language definition file stored in the XML Languages library
Name File name for the resulting XML model
Code Reference code for the resulting XML model
Configure Model Options It lets you define the model options for the new XML model. You can select the naming conventions corresponding to the target language for example

For more information on model options when generating an XML model from an OOM, see Defining XML model generation options.

Update existing XML model

You can generate an OOM into an existing XML model.

If you choose to update an existing XML model when the current OOM has never been generated, the Select model dropdown listbox is empty by default. You have to click the Ellipsis button to display the Select a model dialog box in which you can select a model. The Workspace Location and Physical Path columns provide more information about the model location in the workspace and the file path to help you choose the XML model. You can also use the tooltip in the dropdown listbox to verify the location and path of the model.

To update an existing XML model, you must indicate the following parameters:

Parameter Description
Select model Existing XML model. The OOM is generated into an XML model. This XML model is merged with the existing XML model to create an updated XML model. The dropdown listbox displays already generated models. The Ellipsis button lets you select models opened in the workspace
XML language Current XML language definition for the XML model
Preserve modifications Allows a comparison and merge of the newly generated XML model (default XML model) with the currently selected XML model

Note   Clearing the Preserve modifications check box
If the Preserve modifications check box is not selected, PowerDesigner automatically replaces the existing XML model with the newly generated XML model.
If you want to choose which objects to add or delete from the model to be merged, you must select Preserve modifications to compare and merge the two XML models.

 


Copyright (C) 2005. Sybase Inc. All rights reserved.