#### 23.2.4 Specifying the root element and content type

The default value for root is doc for generic XML. Because XML does not have <head> and <body> sections, the default is to omit these:

    [HTMLOptions]
    XMLRoot=doc
    UseHeadAndBody=No
    ; ContentType = text/html (default for HTML and XHTML)
    ;  or application/xml (default for XML); try not to use text/xml
    ; (for interoperability)
    ContentType=application/xml

Content-Type is part of MIME, and is used by document-processing tools. Unless you know exactly what you want and need only a mechanism to specify it, leave this setting alone. For more information, see:

http://www.w3.org/Protocols/rfc1341/4_Content-Type.html

Previous Topic: 23.2.3 Specifying character encoding for generic XML

Next Topic: 23.2.5 Preventing arbitrary line breaks in XML text elements

Parent Topic: 23.2 Specifying generic XML output settings

Sibling Topics:

23.2.1 Creating a generic XML project

23.2.2 Changing output XML version or file extension

23.2.3 Specifying character encoding for generic XML

23.2.5 Preventing arbitrary line breaks in XML text elements

23.2.6 Specifying a starting topic for generic XML