Opening a Document as Plain Text

Text mode is convenient for specific XML source code editing which can't be done in WYSIWYG mode:
  • Manually fixing invalid XML documents

  • Changing DOCTYPE declaration of the document

  • Changing the root element of the document

Documents open by default in WYSIWYG mode and then you can switch to Text mode if necessary .

To open a document straight away in Text mode, do the following:

  1. Call up the Open File as Plain Text Dialog.

    To call up the Open File as Plain Text Dialog, choose Document > Open as Plain Text .

  2. Select the file.

    In the Open File as Plain Text Dialog, browse for the file to open.

    Figure 1. Open File as Plain Text Dialog.



  3. Click the Open button.

    The document will be opened in Text mode.

You can switch from Text mode to WYSIWYG mode:
  1. Choose Tools > Switch to WYSIWYG Mode or press F6.

  2. In the Choose Document Template Dialog, the most appropriate document template is selected automatically. You can select another template if needed.

    Note:

    To see the values provided by the selected template and change them if needed, click the Details button.

    Figure 2. Choose Document Template Dialog.



    1. Schema

      In the Schema field, see the path to the corresponding schema prescribed by the selected template.

      To assign the path to some schema other than that prescribed by the selected template, modify the path in the Schema field (or click the Browse button next to this field) . You can specify an absolute path as well as a relative path to your schema.

    2. Stylesheet

      In the Stylesheet field, see the path to the corresponding stylesheet prescribed by the selected template.

      To assign the path to some stylesheet other than that prescribed by the selected template, modify the path in the Stylesheet field (or click the Browse button next to this field). You can specify an absolute path as well as a relative path to your stylesheet.

    3. Encoding

      In the Encoding field, see the encoding prescribed by the selected template.

      To assign an encoding other than that prescribed by the selected template, select it from the Encoding drop-down list.

  3. Click OK.

Related tasks
Opening a Document in WYSIWYG Mode
Opening a Recent Document
Opening a Document from the Command Line