SQL Server is able to read XML and embed it as needed. Here is an example of an XML file and an insert extracted from here :
XML:
<Products> <Product> <SKU>1</SKU> <Desc>Book</Desc> </Product> <Product> <SKU>2</SKU> <Desc>DVD</Desc> </Product> <Product> <SKU>3</SKU> <Desc>Video</Desc> </Product> </Products>
Insert statement that parses XML:
INSERT INTO Products (sku, product_desc) SELECT X.product.query('SKU').value('.', 'INT'), X.product.query('Desc').value('.', 'VARCHAR(30)') FROM ( SELECT CAST(x AS XML) FROM OPENROWSET( BULK 'C:\Products.xml', SINGLE_BLOB) AS T(x) ) AS T(x) CROSS APPLY x.nodes('Products/Product') AS X(product);
source share