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

Import XSD

The XML Schema Import facility is used to reverse engineer a W3C XML Schema (XSD) file as a package of your UML Class model.

Access  

Tools | XML Schema | Import XML Schema
Project Browser package 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 ) + 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)

Create 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

Learning Center topics

(Alt+F1) | SOA and XML Engineering | XSD | Import XML Schema