The XML Editor in general offers certain features to make working with XML documents easier.
Show Validation Errors
Clicking “Show Validation Errors”
under the item “XML” in the menu bar opens a new view in which error messages are listed with information about invalid XML and offset.Associate a Schema
If an XML document is open, you can associate a schema to it. After clicking “Associate a Schema”
under the item “XML” in the menu bar, the “Select a new schema” dialog will open.
If the document is already associated to a schema, there will be a display of summary information above the list of schemas. You can choose one of the schemata listed with information about the schema name, the corresponding Project, its contributor and its creation date. Click a schema to select it and “OK” to associate it to the XML document.
If no schema is associated, the button “no explicit schema association” on the left below the list will be marked. The association of a schema with a document will only be made persistent when the document or its metadata is saved.
Associate a Cascading Style Stylesheet (CSS)
A Cascading Style Sheet (CSS) can be added to an XML document when it is opened and the option to “Associate a CSS Stylesheet” is selected from the item “XML” in the menu bar. The CSS will be used for displaying the XML document in the WYSIWYM View. You can select a CSS from the list by clicking on it. By default, a TEI stylesheet built into the editor will be used. To reactivate this option, click the button below the list of CSS models.
Associate an Adaptor
An adaptor can be associated to translate the selected document to the TextGrid Baseline Encoding. To open it, please select “Associate an Adaptor...”
under the item “XML” in the menu bar when a document is opened or choose this item in the Navigator’s context menu of the preselected Object. A new dialog box will open.In the upper list of the dialog, the selected Object(s) will be displayed with information about "Title", "Project", "Contributor" and "Creation Date". You can tick the box under this list to make the assignment persistent when clicking “OK”.
In the lower list you can select the adaptor by clicking on it. Here you will also find additional information about the adaptors. To reverse your selection, you can mark the button “Associate with no adaptor” under this list.
XML Editor Debugging
The debugging function finds and reduces the number of problems. The XML Editor Debugging works with the WYSIWYM View. Using the “XML Editor Debugging” under “XML” in the menu bar, you can reload the WYSIWYM View. By selecting “Debug XML Document”, you can save the WYSIWYM Debug Output. You can also open the WYSIWYM Debugging View by clicking “Layout Debugging”.