When generating an XSM from a PDM or OOM, you can specify global
generation options to generate tables/classes as elements with or without complex types and
columns/attributes as elements or attributes. You can override these options for individual
objects by attaching the PDM XML Generation or OOM XML
Generation extension to your source model and selecting from their XML
generation options.
Note: The extension provides new property sheet tabs for setting generation options for
individual objects, but you can also set these options with or without the extension
by selecting to open the appropriate object list, clicking the
Customize Columns and Filter tool, and selecting to
display the XML Generation Mode column.
For example, if you want to generate the majority of your table columns to an XSM as
XML attributes, but want to generate certain columns as elements, you should:
- Modify the XML generation options for those columns that you want to
generate as elements.
- Select to generate columns as attributes on the Model Generation Options
Detail tab.