Alright, I decided instead of Serialization or Access, I'm going be using XML files.
Now, I have them properly adding and editing, but I see theirs a property .SelectNodes( )
How do I use this ? I did a quick Google Search, couldn't find much. Here's the current Code I'm using to Edit my Document.
vb Code:
Public Sub EditClasses() With frmClassEdit Dim xmlDoc As New XmlDocument xmlDoc.Load(Application.StartupPath & "\Data\" & .cmbClassSelection.SelectedItem.ToString & ".xml") Dim xmlnod As XmlNode xmlnod = xmlDoc.DocumentElement.SelectSingleNode("Classes/ClassName") xmlnod.InnerText = .txtClassName.Text xmlnod = xmlDoc.DocumentElement.SelectSingleNode("Classes/ClassCode") xmlnod.InnerText = .txtClassCode.Text xmlnod = xmlDoc.DocumentElement.SelectSingleNode("Classes/ClassRoom") xmlnod.InnerText = .txtClassRoom.Text xmlnod = xmlDoc.DocumentElement.SelectSingleNode("Classes/Grade") xmlnod.InnerText = .numGrade.Value xmlDoc.Save(Application.StartupPath & "\Data\" & .txtClassCode.Text & ".xml") xmlDoc.RemoveAll() End With End Sub


Reply With Quote

