设为首页
加入收藏
站内地图
旧版入口
当前位置:首页 > 站长学院 > 网络编程 > ASP.NET

ASP.NET中使用Treeview和XML 2

作者:佚名 出处:网络转载 时间:11-13 点击:

内容载入中...
     先来看下第一种方法,建一个XML文件作为例子,命名为ASPnetbooks.XML:
  
  <?XML version="1.0" encoding="UTF-8"?>
  <books>
   <book price="34.95">
    <title>Teach Yourself Active Server Pages 3.0 in 21 Days</title>
    <authors>
     <author>Mitchell</author>
     <author>Atkinson</author>
    </authors>
    <year>1999</year>
  </book>
  
  <book price="29.95">
  <title>Designing Active Server Pages</title>
  <authors>
   <author>Mitchell</author>
  </authors>
   <year>2000</year>
  </book>
  
  <book price="34.95">
  <title>ASP.NET: Tips, Tutorials, and Code</title>
  <authors>
   <author>Mitchell</author>
   <author>Mack</author>
   <author>Walther</author>
   <author>Seven</author>
   <author>Anders</author>
   <author>Nathan</author>
   <author>Wahlin</author>
  </authors>
  <year>2001</year>
  </book>
  
  <book price="24.95">
  <title>ASP Unleashed</title>
  <authors>
   <author>Walther</author>
  </authors>
  <year>1998</year>
  </book>
  </books>
  
  
    。

收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口

站长学院

推荐信息