Hack Forums
[.NET] VB.NET and XML question - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] VB.NET and XML question (/showthread.php?tid=5863215)



VB.NET and XML question - Shadow Reign - Jul 18, 2018

I'm not very familiar with XML or VB.NET.

I'm attempting to create an application that can be used to keep track of specific data.

Essentially what I want to do is this

[Image: EI4fOrL.png]

Write this data into a database that can be saved by the application upon closing and viewed again at later dates.


First I was attempting to just use Folders and text files, but the way I wanted it to work was to input the dates/times/ETC as the file name but windows wont allow some of the characters I need  )(:;\/


Then I got thinking what if I keep the database inside the application itself instead of streamreading and writing data to text files and directories.


And that's why I am here. Is this possible using an XML file?


RE: VB.NET and XML question - Vyxn - Jul 18, 2018

(Jul 18, 2018 02:09 AM)Shadow Reign Wrote:  First I was attempting to just use Folders and text files, but the way I wanted it to work was to input the dates/times/ETC as the file name but windows wont allow some of the characters I need  )(:;\/

Replace or remove those invalid character then?

(Jul 18, 2018 02:09 AM)Shadow Reign Wrote:  And that's why I am here. Is this possible using an XML file?

Yes.


RE: VB.NET and XML question - Shadow Reign - Jul 18, 2018

If I remove them it makes the file name difficult to understand and I can't find a decent replacement that windows will allow.


But now that I know, I'm going to try it with an XML file.


RE: VB.NET and XML question - sh@rp - Jul 18, 2018

You can store and retrieve data by using "Xml Serialization". ;)