Reading xml file into dataset using asp.net vb
Thursday 17 April 2008
If you want to read from and xml file in asp.net vb and the bind that data to a dataset, simply use the below code:
' Read the xml from file, make sure to change the path and file name
' Bind the data from the xml to a dataset and to a datagrid
datagrid1.DataMember = "file"
datagrid1.DataSource = dataset1
Where you see "file" mentioned about, be sure to change this to the section you want to read from the xml file.