using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using TwoDistrictAgrument.DButil;
namespace TwoDistrictAgrument.DAL
{
/// <summary>
/// 数据库配置接口的实现类
/// </summary>
class DataSetConfig
{
#region 读取数据库配置文件信息
/// <summary>
/// 读取数据库配置文件信息
/// <returns></returns>
public void ReadDataSet()
{
try
{
XmlDocument xml = new XmlDocument();
xml.Load(SimpleWorkSpace.DataSetConfig_FilePath);
XmlNodeList nodelist = xml.SelectSingleNode("DataConfig").ChildNodes;
foreach (XmlNode xn in nodelist)
{
XmlElement xe = (XmlElement)xn;
if (xe.GetAttribute("name") == "数据库配置")
{
XmlNodeList nls &
C# 读取xml中配置文件中的信息
最新推荐文章于 2024-04-18 20:24:08 发布