PDA

View Full Version : Output as XML


madstock
30-03-07, 17:26
Hi,

I have knocked together a site at http://www.shopwindow.me.am , and am very keen to get sitemaps for the top 100 products in each category.

I am able to get an output of product URLs at:

http://www.shopwindow.me.am/feed2.php?c=99&iListLimit=100&sListSort=popular

(This was a chopped up version of category.php and thus category.tpl ), however I can in no way get the .tpl file to output as XML, as it will not accept a declaration in the header that it is xml.

Would anyone have any ideas, please?

Confuscius
30-03-07, 18:26
I do not see why you should not be able to capture what you are fetching to a SINGLE php variable then a few replaces to edit in the XML format that you want or explode it into an array and then write out your new file. I am not a programmer per se but can get by with this sort of issue. No doubt the real programmers will suggest an easier way.