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 UML Class model. An XSD file is imported into Enterprise Architect as a UML package.


Tools | XML Schema | Import XML Schema
Project Browser package context menu | Code Engineering | Import XML Schema





See also

Root Package

Indicates the name of the package selected.




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



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


Initiate XSD Import.




Close this dialog.




Display this Help topic




Lists the progress of Schema Import.




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