Altova XMLSpy 2025 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 Table Display of Grid View.

Sort XML elements using the sort functionality of Table Display.

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.

icTextView

View | Text View. Switches to Text View.

icGridView

View | Grid View. Switches to Enhanced Grid View.

ic_disp_as_tbl

XML | 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 its Table Display. The icon is used to switch between the Table Display 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.

icGotoDefinition

Opens the associated DTD or XML Schema file.

 

© 2018-2024 Altova GmbH