Import XSD

The XML Schema Import facility is used to reverse engineer a W3C XML Schema (XSD) file as a UML Class model. An XSD file is imported into Enterprise Architect as a UML package.

Access:  

  • Tools | XML Schema | Import XML Schema
  • Right-click on a package in the Project Browser and select the following context menu : Code Engineering | Import XML Schema

 

Reference:

Field/Option/Button

Usage

See also

Root Package

Indicates the name of the package selected.

 

Directory

Specifies the directory where the XSD file(s) is located.

 

Selected File(s)

Lists the XML Schema(s) currently selected for import.

To select several individual files CTRL + left click on each file.

To select a range of files, press SHIFT and select the first and last file in the range.

 

Import Options

Field

Usage

Import global elements with "Type" postfix

Treat the global element and the ComplexType it is referring to as two separate entities.

Import referenced XML Schema(s)

Import any XML Schema that is being referenced by any of files listed in the Selected File(s) field.

Create Diagram for XML Schema(s)

Creates a Class diagram under each imported XSDschema package

Import XSD Elements/Attributes as

Indicate how the inline XSDelements and XSDattributes are imported in a Class.

 

 

Global Element and ComplexType

Import

Initiate XSD Import.

 

Close

Close this dialog.

 

Help

Display this Help topic

 

Progress

Lists the progress of Schema Import.

 

Notes:

  • If an XML Schema file being imported already exists in the model, Enterprise Architect skips importing the file
  • References to XSD Primitive Types are always imported as UML Attributes
  • References to XSD constructs in external Schema files are always imported as UML Attributes
  • Enterprise Architect uses the schemaLocation attribute in the XSD Import and XSD Include elements of an XML Schema to determine the dependencies between the files. Ensure that this attribute is set to a valid file path (and not a URL) for the dependent XML Schema(s) to be imported correctly