Hello Guys,
I need some help please because I'm hitting a road block with what seems a fairly basic task.
I need to export data from a number of tables to an XML file. I have created a view for my FOR XML query, that's all working fine. The XML output looks perfect.
Now I need to get it into an XML file, so I created a SQL data source where I query my view. It returns a single column called 'xml_output' and in the single output row sits the perfectly well-formed XML. So now I need to get this into a flat? file. But
no matter what I try I don't get the whole header-rows-to-skip, header-row-delimiter thing right. I want the file to contain no header and no column names and no delimiter. I want the file to contain nothing but my XML data.
I managed to omit the column name but what I get is a file that starts 0x0d, 0x0a and thats not a valid XML file. I understand that's cr/lf and it must be related to the header-rows-to-skip and header-row-delimiter settings in the flat file connection manager.
I spent the entire morning on google but even though it seems a very basic problem I didn't get anywhere with this. It must be me. There is a
basic how-to on codeproject and I'm doing exactly what this guy is doing but he claims he gets a valid XML that opens in IE and I get a file that starts with 0D0A and it is not recognized by IE or other tools as valid XML..
Thanks for reading, Best Regards
Carsten