1. Supported DTDs

XMLmind XML Editor (XXE for short) supports the following XHTML DTDs:

XHTML 1.0 Strict

The Strict DTD, which is content-oriented.

<!DOCTYPE> declaration added by XXE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
XHTML 1.0 Transitional

The Transitional DTD, which is compatible with traditional HTML.

<!DOCTYPE> declaration added by XXE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
XHTML 1.1

This document type is similar to XHTML 1.0 Strict, just slightly simpler and cleaner. However, like XHTML 1.0 Transitional, it makes it possible specifying attribute target on the a element. Example: <a href="http://www.w3.org/TR/xhtml11/" target="_blank">XHTML 1.1</a>.

<!DOCTYPE> declaration added by XXE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Important

if you have created your XHTML document using an editor which does not add one of the three above <!DOCTYPE> declarations at the top of your document, XXE will fail to recognize your document as being an XHTML one.

When this is the case, you'll have to fix this problem by adding one of the three above <!DOCTYPE> declarations, by hand, using a text editor. If you don't know which <!DOCTYPE> declaration corresponds to your document, then choose XHTML 1.0 Transitional which is the most lenient one.

1.1. Omitting the XML declaration from the save file

Omitting the XML declaration (that is, <?xml version="1.x"...?>) is useful when an XHTML document is delivered by the Web server to the Web browser as if it were an HTML document. That is, for the Web browser, the media type of the document is text/html and not application/xhtml+xml.

This is useful because both the XML declaration and the <!DOCTYPE> declaration have an effect on the behavior of Web browsers. See Activating Browser Modes with Doctype.

  • If the document does not contain <meta http-equiv="Content-Type".../>, then the XML declaration is not omitted.

  • If you want to omit the XML declaration from the save file, then add <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> to the head element.

    Note that:

    • For the XML declaration to be omitted, the media type must be "text/html" and the charset must be "UTF-8".

    • Element <meta charset="CHARSET"/> is considered to be equivalent to <meta http-equiv="Content-Type" content="text/html;charset=CHARSET"/>.

    • The values of all the aforementioned attributes are parsed in a case-insensitive manner.

  • If you just want to force the encoding of a specific XHTML document to be, for example, Windows-1250 without having to tweak OptionsPreferences, Save options, then add <meta http-equiv="Content-Type" content="application/xhtml+xml;charset=Windows-1250"/> to the head element.