vb.net Code:
Function functionLoadHiddenFields(ByVal fileLocation As String)
Try
'// Check if the file exists
If File.Exists(fileLocation) Then
'// Load the xml document
Dim XMLDoc As New Xml.XmlDocument
'// Find and load the XML file
XMLDoc.Load(fileLocation)
'// Tell where to look for the data we need
Dim XMLItem As Xml.XmlNode = XMLDoc.SelectSingleNode("hiddenFields/")
Else
'// oops, the file is missing or wasn't written!
MessageBox.Show("A file is missing that we need to use!, please restart the program", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
Catch ex As Exception
Return False
End Try
End Function