Using XML as a configuration File

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have generated a XML File to hold my SQL Connection data i.e UserName,
Password, Database & Server.

I know it's not the most secure but I have yet to research the encryption
levels on the file.

So I have my Schema & updates to the fields on my application screen updates
my XML File.
How do I use the properties set in the xml file for my SQL connections in
all 3 screens of my app?

The xml File looks as follows:

- <Settings>
<dbLogin>sa</dbLogin>
<dbPassword>SRV-MARC</dbPassword>
<dbDatabase>MISRE</dbDatabase>
<dbServer>SRV-MARC</dbServer>
</Settings>
</MISRE_XMLSchema>
 
Back
Top