ASP.NET Core 1.0.1 Hosting: How To Import XML File Data Into SQL Table Using Stored Procedure In ASP.NET?

I have an XML file (student), which stores the information of the student and want to import its data into SQL table.

hflnet51Student.xml file looks, as shown below.

 

Implementation
I have created a Student table.
Id          int
name    varchar(100)
class    varchar(50)
roll_no  int

HTML structure of the page looks, as shown below.

Import the namespace
C# code

Build the project and run. To test, upload this XML file.