Anyone able to get Scheduler going in Catalyst Webframework

We are developing an application using the Catalyst Web Framework and want to integrate the DHTMLX Scheduler into it. I can get the scheduler to appear, but I can’t get the PHP to execute for the config and events.php files. An error box appears with the contents of the events.php file. We want to purchase the enterprise license if we can get this going but at this point I am lost.

Try to load events.php directly in browser - browser will show syntax error info.

There are two possible reasons

a) incorrect content-type ( text/xml expected )
b) some output was started before <?xml tag

Also, you may use json instead of xml, which doesn’t require special content-type and less strict with starting whitespaces.