Setting up a Design to be formatted as XML


(Steve Scamp) #1

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


(Tom Chadwin) #2

What Matrix version? I and someone else have had this two-tab problem with other rendered output formats - HTML for me, iCal for someone else. Will look for threads.


(Tom Chadwin) #3

Here you go:

http://forums.squizsuite.net/index.php?showtopic=9759&view=&hl=&fromsearch=1


http://forums.squizsuite.net/index.php?showtopic=12224&view=&hl=&fromsearch=1