\encoding UTF8
COPY (SELECT query_to_xml('SELECT kod as id, lang_0000040e as nev
   FROM szallitasmod
   WHERE hasznalatban = 1
   ORDER BY 1
', true, false, '')) to '/tmp/flexovit_szallitasmod.xml'