Good evening. I just can not solve the problem. When generating xml files, empty lines are added at the beginning. Because of them the error takes off

This page contains the following errors:
error on line 2 at column 6: XML declaration
Up to the first error.

Opencart 1.5.4.1 engine Opencart 1.5.4.1 . I beg for help.

 <?xml version="1.0" encoding="windows-1251"?> <!DOCTYPE yml_catalog SYSTEM "shops.dtd"> <yml_catalog date="2013-02-19 00:25"> <shop> <name></name> <company></company> <url></url> <phone></phone> <platform>ocStore</platform> <version>1.5.4.1</version> <currencies> <currency id="USD" rate="1" /> </currencies> <categories> </categories> <offers> </offers> </shop></yml_catalog> 

Р ”Р ° С„ ормируется РјРѕРґСѓР »РµРј. РћРґРёРЅ РјРѕРґСѓР »СЊ РґР» СЏ СЃРѕР · РґР ° РЅРёС sitemap, второй РґР »СЏ СЃРѕР · РґР ° РЅРёС yml ктР° Р» РѕРіР °.

  • one
    code show how to generate? - zb '
  • Moved to the question. - reshtakov
  • 2
    Change the script file encoding to UTF-8 WITHOUT BOM - Indifferent
  • one
    Clear the output buffer before generating the xml. - ReklatsMasters


0