Wednesday 08 November 2006 1:38:43 pm
I need to generate one of my content in pure xml. I have made contetn-type for given path to 'text/xml' ( by HTTPHeaderSettings section in site.ini ) and created pagelayot.tpl template like:
<? xml version="1.0" encoding="windows-1251" ?>
<main_tag>
<aaa>
............
</aaa>
</main_tag>
In result I have XML content but not valid because before XML header <? xml version="1.0"?> appears some space symbols which make this XML file not valid. XML content should start with this header without any spaces or something anything. How can I remove this spaces? Or how correctly put XML header into pure XML content?
|