Step 1 What is XG Viewer?
The content of a MIDI file can, of course, be viewed by a conventional sequencer program, but this will not necessarily show you the whole story. As the name suggests, XG Viewer is basically a viewer program that shows the content of an "SMF format 0" file, but it differs from a conventional sequencer program by providing the following functionality.

1
All editable MIDI events are displayed (including Meta events)
2
All events are displayed in a single window (scrollable display)
3
The user can specify the types and value ranges of the events to be displayed
4
The definition and details of each SysEx (as regards XG) are displayed
5
You can search through the displayed events for a specific event
6
Events can be copied to the clipboard
7
Error display for invalid events or events which are contrary to the XG song data production guidelines

Figure 1

Figure 2
Figure 1 is the main window of XG Viewer, and events displayed in red are events which are some type of error. As mentioned in item 4 above, SysEx events are provided with an explanation telling what the message actually means. (Yamaha's "XGWorks" sequencer software also displays the definition of SysEx events.) Also, you can double-click on a SysEx event to access a dialog box as shown in figure 2, allowing you to view more detailed information.