Hi,
I am reading the following article on the XML format file:
https://msdn.microsoft.com/en-US/library/ms189327%28v=sql.90%29
In this article, the syntax is very simple, as follows:
<BCPFORMAT> <RECORD> <FIELD ...> </RECORD> <ROW> <COLUMN ...> </ROW></BCPFORMAT>
But after reading the sample XML format file at
https://msdn.microsoft.com/en-US/library/ms191234%28v=sql.90%29.aspx ,
it is a bit different, there are some additional parts not mentioned in the syntax, as follows:
<?xml version="1.0"?>
and
xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Are them required for the XML format file? I think version means the version of the XML file and
xmlns means the namespace.
My question is, if I want to create a XML format file acceptable by bcp or BULK IMPORT, should I
includes these parts and keep them same as the sample file?
THanks