Please enable JavaScript to view this site.

Altova XMLSpy 2020 Enterprise Edition

In this section you will learn how to create and work with XML documents in XMLSpy. You will also learn how to use the various intelligent editing features of XMLSpy.

 

Objective

The objectives of this section are to learn how to do the following:

Create a new XML document based on the AddressLast.xsd schema.

Specify the type of an element so as to make an extended content model for that element available to the element during validation.

Insert elements and attributes and enter content for them in Grid View and Text View using intelligent entry helpers.

Copy XML data from XMLSpy to Microsoft Excel; add new data in MS Excel; and copy the modified data from MS Excel back to XMLSpy. This functionality is available in the Database/Table View of Grid View.

Sort XML elements using the sort functionality of Database/Table View.

Validate the XML document.

Modify the schema to allow for three-digit phone extensions.

 

Commands used in this section

In this section of the tutorial, you will mostly use the Grid View and Text View, and in one section Schema View. The following commands are used:

 

ic_new

File | New. Creates a new type of XML file.

ic_txt_view

View | Text View. Switches to Text View.

ic_enh_grid

View | Grid View. Switches to Enhanced Grid View.

ic_disp_as_tbl

XML | Table | Display as Table. Displays multiple occurrences of a single element type at a single hierarchic level as a table. This view of the element is called the Database/Table View (or simply Table View). The icon is used to switch between the Table View and regular Grid View.

ic_well_formed

F7. Checks for well-formedness.

ic_validate

F8. Validates the XML document against the associated DTD or Schema.

ic_goto_def

Opens the associated DTD or XML Schema file.

 

© 2019 Altova GmbH