请教c#winform 用listbox读取xml文件
有一个database.xml文件,我想用listbox显示出里面的内容,请帮忙<?xmlversion="1.0"encoding="utf-8"?><configur...
有一个database.xml文件,我想用listbox显示出里面的内容,请帮忙
<?xml version="1.0" encoding="utf-8"?><configuration>
<appSettings> <add key="SQLServer" value="server=.;database=master;uid=sa;pwd=sa"/> <add key="Oracle" value="Data Source=myoracle;User Id=scott;Password=tiger;"/> <add key="Access2007" value="Provider=Microsoft.ACE.OLEDB.12.0;data source=C:\smdata\msg.accdb;Jet OLEDB:Database Password=zn402;"/> <add key="EXCEL2007" value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\smdata\data.xlsx;Extended Properties='Excel 8.0;IMEX=1'" /> <add key="typeName" value="Common.DataAccess.OleDBOperator" /> <add key="ClientSettingsProvider.ServiceUri" value="" /> </appSettings> </configuration>
appsettings里的add个数不确定 展开
<?xml version="1.0" encoding="utf-8"?><configuration>
<appSettings> <add key="SQLServer" value="server=.;database=master;uid=sa;pwd=sa"/> <add key="Oracle" value="Data Source=myoracle;User Id=scott;Password=tiger;"/> <add key="Access2007" value="Provider=Microsoft.ACE.OLEDB.12.0;data source=C:\smdata\msg.accdb;Jet OLEDB:Database Password=zn402;"/> <add key="EXCEL2007" value="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\smdata\data.xlsx;Extended Properties='Excel 8.0;IMEX=1'" /> <add key="typeName" value="Common.DataAccess.OleDBOperator" /> <add key="ClientSettingsProvider.ServiceUri" value="" /> </appSettings> </configuration>
appsettings里的add个数不确定 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询