• λ我爱Aspx >> Asp.Net >> 用C#编写读取和添加xml数据
  • 用C#编写读取和添加xml数据

  • :aspxer  Դ:csdn  :2007-7-6 2:51:49  ؼ:c#,xml,数据
  • xml要求格式类似如下:

    google_ad_width = 250; google_ad_height = 250; google_ad_format = "250x250_as"; google_color_url = "000000";

    <?xml version="1.0" encoding="ISO-8859-1"?>

    <bookstore>

    <book category="COOKING">

    <title lang="en">Everyday Italian</title>

    <author>Giada De Laurentiis</author>

    <year>2005</year>

    <price>30.00</price>

    </book>

    <book category="CHILDREN">

    <title lang="en">Harry Potter</title>

    <author>J K. Rowling</author>

    <year>2005</year>

    <price>29.99</price>

    </book>

    </bookstore>

    我要存的是输电线路中的导线属性数据,根据导线名称读取相应的属性数据,这里的导线名称对应上面xml文件的category

    我将把类贴出来如下:

    /// <summary>

    /// 典型气象区数据,留了用户接口,可自行添加数据

    /// 温度单位:℃,风速:m/s

    Ҷƪл˵?
  • һƪSqlConnection.Open()
    һƪ有一年asp项目经验,几个月业余时间学习.net经验,现在要你一个人开发,你会用asp还是.net