Integrity Checker Report Doesn't appear correct

Recently, I was working with a user on an issue with a Project when I had him run Integrity Checker.  When we attempted to open the report that was made, the Integrity.xml file, it showed up like this in Internet Explorer -

 

It turns out that the reason why it appeared this way was because the xml file was missing a line that points it to the xsl file (which is placed into the same location as the xml file).  This line needs to be inserted into the second line of the code in the xml file.  Here is an example showing the line that is needed and its placement.

<?xml version="1.0" encoding="utf-16" standalone="yes"?>

<?xml-stylesheet type="text/xsl" href="Integrity.xsl"?>

<!-- pseudo inifile section to access via WinAPI profile functions

[Common]

Status=Warning

Origin=C:\Documents and Settings\All Users\Application Data\Bentley\Plant V8i\Bentley Plant V8i Projects\SAMPLE_IMPERIAL\

FW_VER=8.11.760

Revision=2.58

-->

<Report Revision="2.58" Created="2011-01-10T09:26:49">

                <Database Name="PROJDATA" Type="ACCESS"></Database>

                <Database Name="STANDARDS" Type="ACCESS">

                                <Table Name="doc_reg">

                                                <Column Name="DOC_NAME" Type="VARCHAR(255)" OriginalType="VARCHAR(255)" Default="&quot;Document&quot;" NotNull="1"></Column>

                                                <Index Name="doc_reg_DOCNAME_SHEETNO_I" Unique="0" NotExists="1">

                                                                <Column Name="DOC_NAME"></Column>

                                                                <Column Name="SHEET_NO"></Column>

                                                </Index>

                                </Table>

                </Database>

                <Database Name="SCHEMA" Type="ACCESS"></Database>

</Report>

The highlighted line is the one that is needed.  It tells the xml to use the xsl file for its formatting.  To add this line, just right click on the xml and select the Edit option.  This will load the xml into Notepad where you can just copy and paste the line into the correct location.  With this line in the xml, the report should now look like this when opened in Internet Explorer -