我有以下 xml 文件,我想提取变量名及其值。你能帮我完成这件事吗?我的xml格式是
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="MyApps.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</sectionGroup>
</configSections>
<connectionStrings>
<add name="MyApps.Properties.Settings.dbConnString" connectionString="Data Source=MSTEST01\TQA;Initial Catalog=TQA;Persist Security Info=True;User ID=UserID;Password=Pwd"
providerName="System.Data.SqlClient" />
</connectionStrings>
<applicationSettings>
<MyApps.Properties.Settings>
<setting name="BasePath" serializeAs="String">
<value>\\Results</value>
</setting>
<setting name="cPath" serializeAs="String">
<value>C:\Controller</value>
</setting>
<setting name="ePath" serializeAs="String">
<value>C:\Debug\E.exe</value>
</setting>
<setting name="fPath" serializeAs="String">
<value>C:\Framework</value>
</setting>
<setting name="engineId" serializeAs="String">
<value>1</value>
</setting>
<setting name="wPath" serializeAs="String">
<value>C:\S5</value>
</setting>
</MyApps.Properties.Settings>
</applicationSettings>
</configuration>
我期待输出,例如 executablePath="D:\MyExe.exe"
提前致谢