Thank this author by sharing:
Solution for dynamic bulk inserting records into appropriate tables from the XML files. The XML file structure should be in appropriate table structure. In the first argument pass the XML file tags and second argument pass the table name.
As a member of SQLServerCentral, you get free access to loads of fresh content: thousands
of articles and SQL scripts, a library of free eBooks, a weekly database news roundup,
a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals
that makes it such a success.