Last post May 17, 2010 07:12 AM by rinotomthomas
May 10, 2010 08:26 AM|Utsavp|LINK
i need to make a CRUD application using the XML and VB.net. Pls Help me on how to create, write, read, update, delete the data only using XML file and VB.net.
May 10, 2010 09:33 AM|adeelehsan|LINK
If the XML file structure is not very complex, you can use DataTable to read and update the file programmatically.
Dim dt as new DataTable()
Then later you can make the modification and save back the xml using:
asp .net 2.0
May 11, 2010 03:58 AM|Vijaya.A|LINK
Hi check this
May 11, 2010 04:05 AM|Vijaya.A|LINK
Hi i posted c# links also so for converting C# to vb.net use this link
May 11, 2010 06:54 AM|pauldaniel|LINK
Refer this thread
May 11, 2010 07:03 AM|Vijaya.A|LINK
Hi check this sample
Dim ds As New DataSet()
Dim dr As DataRow
dr = ds.Tables("Student").NewRow()
dr("RollNo") = cmbId.Text
dr("Name") = txtName.Text
If rbnPassed.Checked Then
dr("Result") = "Passed"
dr("Result") = "Failed"
May 12, 2010 03:25 AM|Utsavp|LINK
Here actually CRUD means : Create Restore Update Delete the Data from XML using vb.net language. Can anybody help
me for how to update the data and sort the data stored in XML file using vb.net.
May 13, 2010 02:43 AM|LynxNet|LINK
Are you looking for sample application?
May 13, 2010 03:30 AM|Utsavp|LINK
ya the application simple and small... but it will be good if all task is done related to XML file.
May 14, 2010 10:42 AM|atconway|LINK
If I were you I would use LINQ to XML for all of your CRUD operations. The LINQ to XML operations are powerful and will save you a
lot of coding. Take a look to the following for code samples on CRUD (Create = XML Construction, READ = LINQ Query, UPDATE = XML Write, DELETE = DML):
LINQ to XML Samples:
Hope this helps!
May 17, 2010 07:12 AM|rinotomthomas|LINK
you can better use XML serialization to Write/Read to the XML file. That is the I have done in my project.
But for display, sorting, deleting and updating the same, better you can get the data read into a Datatable.
Following this way, you can crack a XML file with any kind of structure