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:
To call up the Open File as Plain Text Dialog, choose .
In the Open File as Plain Text Dialog, browse for the file to open.
Figure 1. Open File as Plain Text Dialog.
The document will be opened in Text mode.
Choose F6.
or pressIn the Choose Document Template Dialog, the most appropriate document template is selected automatically. You can select another template if needed.
To see the values provided by the selected template and change them if needed, click the Details button.
Figure 2. Choose Document Template Dialog.
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.
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.
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.
Click OK.