IE Enterprise Mode XML Site List Format

IT Support Forum Forums Windows Windows 7 Applications IE Enterprise Mode XML Site List Format

This topic contains 2 replies, has 2 voices, and was last updated by  Webmaster 10 months, 3 weeks ago.

  • Author
    Posts
  • #1332

    Webmaster
    Keymaster

    You might want to edit the XML site list file yourself rather than using the Enterprise Mode Site List Manager, in order to do more advanced XML rules. This article shows you the format of the Enterprise Mode XML site list.

    To edit the Enterprise Mode XML site list, first you must have the right structure for the file, which is:

    <rules version="1">
     <emie>
     </emie>
    </rules>

    You then add your rules in between the emie tags, incrementing the version number with each change you save to the file. The incremented number tells the browser to download the updated version.

    Here’s the format of the Enterprise Mode XML rules.

    <domain exclude="false">itsupportforum.net</domain>

    This rule makes the entire itsupportforum.net domain get rendered in Enterprise Mode (as though it was displayed in IE 8). Changing false to true (or not listing it in the xml site list at all) would prevent it being rendered in Enterprise Mode.

    ❗ Note: You cannot specify port numbers or protocols, such as http:// in the xml site list. This is not currently supported, and specifying protocols breaks the xml parsing (stopping Enterprise Mode from working on any websites). Officially adding IP addresses isn’t supported either, but I’ve found that this works just fine. Wild cards and query strings and the & character are also not supported.

    If you only want to add a virtual folder within a domain (and not the rest of the domain), you can do this at the path level using this xml rule:

    <domain exclude=”true”>itsupportforum.net
    <path exclude=”false”>/about/</path>
    </domain>

    The true and false can be exchanged so the domain is in Enterprise mode and itsupportforum.net/about/ is not in enterprise mode. You can do multiple layers of virtual folders in the same path rule, such as:

    <domain exclude=”true”>itsupportforum.net
    <path exclude=”false”>/about/author/Webmaster/</path>
    </domain>

    ❗ Note: if the path specified in the xml rule ends with a /, then only that folder will be in Enterprise Mode. In Most cases, you’d probably want to remove the / character at the end to show everything in that folder in Enterprise Mode.

    You can also use Enterprise Mode XML site lists to make a website render in IE 7 or IE 5 compatibility mode with the following rule:

    <domain exclude="false" forceCompatView="true">itsupportforum.net</domain>

    If the webpage has a DOCTYPE HTML tag, then the browser will render in IE 7 mode, otherwise it will render in IE 5 mode.

    You can also render website in alternative Doc Modes. In HTML, you can specify a DOCTYPE, which tells the browser to render the website as though it was a particular version of Internet Explorer. Doc Modes in the Enterprise Mode xml site list tell the browser to render the website as though it had a DOCTYPE HTML tag.

    To do this, after the </emie> XML tag, put this rule:

    <docMode>
     <domain docMode="edge">itsupportforum.net</domain>
    </docMode>

    There are several Doc Modes. edge tells the browser to render the website as though it was the latest version. To render the website as previous versions of Internet Explorer, replace the word edge with the single digit version number of IE that you wish to render as. For example:

    <docMode>
     <domain docMode="5">itsupportforum.net</domain>
    </docMode>

    The above code renders the website as though it was set to DOCTYPE 5, or IE 5 mode. Doc Modes range from 5 to 11 and edge.

    I don’t know if Enterprise Mode XML site lists allow virtual directories within Doc Mode rules. If you find out, or if I’ve missed anything, please leave a note below to help others.

  • #1572

    alexvi
    Participant

    Is it possible to use IE 11 Enterprise mode to render the entire sub-domain. Such as *.mydomain.com ?

  • #1587

    Webmaster
    Keymaster

    I’m pretty sure you can, unfortunately I’m not currently working at a company that uses IE Enterprise mode, so I can’t see how I’ve done this in the past.

You must be logged in to reply to this topic.