Hi folks,
I'm having a little trouble with setting up a Design that I'm applying to an asset listing of calendar events, in order to format the output of the asset listing as an XML file.
The entire code in the Design's parsefile is as follows:
<MySource_PRINT id_name="__global__" var="content_type" content_type="application/xml; charset=utf-8" /><MySource_AREA id_name="body" design_area="body" />
I've set up the code appropriately within the asset listing itself as well, and as a result I'm getting an almost valid XML file as my output.
The problem I'm experiencing is, for some unknown reason two Tab spacings are being inserted at the beginning of the XML code in the file, so it results in the following.
<?xml version="1.0" encoding="UTF-8"?><events>
Etc etc.
I will swear blind that those two tabs are not present in the code of either the Design or the Asset Listing elements.
And, of course, those two tabs render the entire XML file invalid.
So, my questions to the forum are:
- Has anybody seen this sort of thing happen before?
- If so, were you able to fix it by removing these extraneous tabs?
- And if you were able to, could you share with me how you managed to do it?
I'm sure this will be something fairly simple to fix, but I haven't found the solution yet, and I'd appreciate any help.
Many thanks.
Steve