Book a Demo

Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Prev Next

Generate Model Document XML

You generally use a Model Document element to create a document report containing information from separate Packages in your model. However, you can use the same concept, structure and processes to generate an Enterprise Architect Native XML file for export to another model. This helps you to select Packages from any part of the model and transport them to another model without having to process them individually or create special structures to combine them. You could use this to, for example, define a model subset that can be included in a restricted-user WebEA view.

You create a Model Document element, add the individual Packages to it, and generate the XML from that element to an external file location. The XML will contain all the Packages (and their child structures) specified in the Model Document element. You can then use the normal Import XML facilities to import the file into another model.

You can generate an XML file from a Model Document element set up to generate a document report from a Package list; the XML generator ignores the Tagged Values of the element. You could generate a report to accompany the file, to show its content.

Set up the Model Document

Work through these procedures:

  • Create a Model Document element on a diagram (as described in the Create Model Document Help topic); you don't need to set any Tagged Values
  • Drag the required Packages into it (as described in the Add Packages to Model Document Help topic); you don't use a model search to populate the element
  • If necessary, organize the Packages into an appropriate sequence (as described in the Document Order Help topic, Change Sequence of Packages... section )

Generate XML

Step

Action

See also

1

When you have set up the Model Document element, right-click on it in its parent diagram and click on the 'Documentation | Generate XML' option.

Generate Documentation

2

On the 'Generate Model Document XML' dialog, type in the file path of the XML file to be generated, or click on the Browse. button and browse for the location.

Click on the Generate button to generate the XML into the file.

3

The XML Generator works through the defined content of the Model Document element, pulls in the information from the listed Packages and generates a Native XML file, showing the progress of the operation in the Progress field.

Click on the Close button.

You - or another user - can now import the XML file into a different model using the 'Import Package from XML' dialog.

Notes

  • In the Corporate, Unified and Ultimate editions of Enterprise Architect, if security is enabled you must have 'Export XML' permission to export to XML
  • The generated XML file cannot be imported into a version of Enterprise Architect earlier than version 15.0
  • A Log file for the Model Document being exported is not generated unless the 'Write Log' option is selected in the 'XML Specifications' section of the 'Preferences' dialog
  • When you import the XML file into a model, Enterprise Architect will create a Package (with the same name as the Model Document element) that will act as a container for the Packages specified in the Model Document element

Learn more