Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

VS 2008 [RESOLVED] Name Info from XML File

$
0
0
Hi,

I would like to edit the app config file (e.g., MyApp.exe.config) through VB. Here is an example of part of the file:

<applicationSettings>
<SettingsXmlInterface.My.MySettings>
<setting name="StrTest" serializeAs="String">
<value>Testing..1..2..3</value>
</setting>
<setting name="IntTest" serializeAs="String">
<value>123</value>
</setting>
<setting name="DblTest" serializeAs="String">
<value>1.23</value>
</setting>
<setting name="TimTest" serializeAs="String">
<value>01:02:03</value>
</setting>
<setting name="BooTest" serializeAs="String">
<value>True</value>
</setting>
<setting>
</applicationSettings>
</configuration>


I can read in the values, but I am unable to get the setting name. For example, from 'setting name="StrTest"', all that I am able to extract is "setting", but I am after "StrTest".

(I have not tried to figure it out yet, but later I will probably have ask how to generate an entry such as '<setting name="StrTest" serializeAs="String">' )

Thanks,
That Sam I Am

Viewing all articles
Browse latest Browse all 27350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>