Sybase XML manual Creating an element, Attributes Mapping, ™ To create an element from the palette

Models: XML

1 290
Download 290 pages 48.58 Kb
Page 55
Image 55

 

 

 

 

 

Chapter 2 Building an XML model

Attributes Mapping

The Attributes Mapping page allows you to define the mapping between

page

PDM columns or OOM class attributes and the element attributes.

 

Tool

 

Tooltip

 

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

Add Mapping

 

Use this tool to select the attributes in the

 

 

 

 

 

current element that will be mapped to PDM

 

 

 

 

 

columns or OOM class attributes. Once you

 

 

 

 

 

have selected the attributes, you can use the

 

 

 

 

 

dropdown listbox in the Mapped to column to

 

 

 

 

 

select corresponding PDM columns or OOM

 

 

 

 

 

class attributes

 

 

 

Create from Sources

 

Use this tool to copy PDM columns or OOM

 

 

 

 

 

class attributes in the data source to the

 

 

 

 

 

current element attributes

 

 

 

Generate Mapping

 

Use this tool to automatically generate a

 

 

 

 

 

mapping between PDM columns or OOM

 

 

 

 

 

class attributes and element attributes with the

 

 

 

 

 

same name or code in the data source and the

 

 

 

 

 

current model

 

 

 

 

 

 

 

For more information on element mapping, see section Mapping objects in an XML model in chapter Working with an XML model.

Creating an element

You can create an element:

From the palette

From the Browser tree view

From the List of Elements of the Model menu

 For more information on the different ways to create an element, see section Creating an object in chapter Managing objects of the General Features Guide.

™To create an element from the palette:

1 Select the Element tool in the palette.

2 Click an empty space in the diagram.

An element symbol appears in the diagram at the click position.

XSM User's Guide

43

Page 55
Image 55
Sybase XML manual Creating an element, Attributes Mapping, ™ To create an element from the palette