IE / Firefox xml discrepancy


I am having a problem with displaying XML Grid data in Firefox & Safari.
The web page displays a message with the contents of the xml data that should appear in the grid.

There is no problem in IE.
I believe it may be a problem with the data in the MYSQL database.
I am using dhtmlxconnector to render the grid data.

Is there any way I can isolate the data that may be causing the issue?
Why would this only be an issue with ‘non’ IE Browsers?

Thank you so much.

When viewing the Firefox error log I see…

Error: XML or text declaration not at start of entity
Source File: localhost/cst/training.php
Line: 2, Column: 1
Source Code:

<?xml version='1.0' encoding='utf-8' ?>StudentCourseDateCompanyInstructorFacilityGradepx#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter,#connector_text_filter

I think it has to do with whitespace in the xml stream ???

Hope this helps.

The error occurs because of whitespace before xml , for sure.
Check the connector file and any includes - they must not contain any text outside of php code blocks.

Here is how I seem to have solved this issue.
In the php file that builds the grid, I had a security snippet that ensures that there is a valid user logged in.
The php file had multiple <?php ... ?> in the file.
When I removed the multiple <?php ... ?> and only included one <?php> declaration in the file, it seemed to resolve the issue within the Fire Fox Browser.
As I am relatively ‘new’ to PHP I am not sure wheather it is best practise to only have one <?php> declaration in each url ???