Working with XML files

Requirements Specifications are written as XML documents. The rcoachspec file is a bundle consisting of the XML file and image files that have been inserted into the document. The element tags in the XML file enables the analysis engine to apply different analysis rules to different elements during analysis. The contents of the bundle can be accessed in the Finder by right-clicking the file and selecting Show Package Contents. The XML file is named spec.xml.

Opening a Requirements Specification

There are two ways to open an existing file in the XML Editor:

  • Through File > Open… in the application menu.
  • Drag and drop a file in the XML element view in the Editor window.

Creating a new Requirements Specification

  • To create a new Requirements Specification based on a template, select File > New in the application menu. Select a template from the Template panel.
  • A default Requirements Specification can be created when the XML Editor is open. The old Specification is replaced by selecting Editor > Clear Specification from the application menu. Write parts of <rc:rqmspec> in the empty XML text view and make a selection from the code completion menu. A default Requirements Specification is created.

XML Editor keyboard commands

Keyboard commands can be used (instead of buttons) to perform different tasks in the XML Editor.

  • New Requirements Specification (Command + N)
  • Open a Requirements Specification (Command + O)
  • Save an edited Requirements Specification (Command + S)
  • Validate a Requirements Specification in the XML Editor (Command + K)

Additional editing commands are available under the Editor menu in the application menu.

Related Topics

The XML Editor

Contents