E
edamron
I'm new to vb.net and have never used xml. However, xml looks pretty
straight forward and I would like to learn how use it to create a
configuration file for a small app.
I got the xmlTextWriter to write out a file and I thought "Oh! this
must be the way!" But now I'm backing off from it because even though
it wrote a file I'm not sure that the file is correct xml and there are
many classes that seem to work with xml files and I may not be using
the best choice.
So I would like to ask which class would be the best to use to create
what I want? Also a small code snippet showing me how to use the
class(es) would help.
Let's say I have two configuration elements I want to store and
retrieve:
DirectoryPath and DatabaseName
And the values were "C:\mypath" and "myDatabase"
Thanks in advance.
straight forward and I would like to learn how use it to create a
configuration file for a small app.
I got the xmlTextWriter to write out a file and I thought "Oh! this
must be the way!" But now I'm backing off from it because even though
it wrote a file I'm not sure that the file is correct xml and there are
many classes that seem to work with xml files and I may not be using
the best choice.
So I would like to ask which class would be the best to use to create
what I want? Also a small code snippet showing me how to use the
class(es) would help.
Let's say I have two configuration elements I want to store and
retrieve:
DirectoryPath and DatabaseName
And the values were "C:\mypath" and "myDatabase"
Thanks in advance.