XML Well-Formedness Details for HTML Documents
When opening an HTML document in Author mode, if it is not XML
well-formed, you will see a warning message at the top of the editor explaining that once you
make a modification, the document will be automatically converted to proper XML structure.
Examples of things that are automatically converted include:
- Missing end tags are added to applicable elements.
- Empty tags are closed.
- Missing quote characters are added to applicable attributes.
- Entity references that are allowed in the HTML5 specification are converted to the corresponding character.
Tip: It is also possible to manually convert HTML documents to be XML well-formed.
There are two ways to do this, depending on whether you want to convert a single document or
batch convert multiple documents at once:
- Single Document - To convert a single HTML document, right-click anywhere in the currently open HTML document (in the main editor) and select HTML to XML Well-formed.
- Multiple Documents - To batch convert multiple HTML documents at once, go to the
Project
Explorer view, select the documents you want to convert,
then right-click and select HTML to XML Well-formed.Notes:
- All selected HTML files are backed up before being processed (same path/name but with the ".bak" extension added at the end).
- Any detected conversion errors are grouped and listed in a dedicated tab in the Results pane at the bottom of the application.
- A brief report is displayed at the end of the operation.