摘要:        
using System.Xml;//初始化一个xml实例XmlDocument xml=new XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/bookstore.xml"));//指定一个节点XmlNode root=xml.SelectSingleNode("/root");//获取节点下所有直接子节点XmlNodeList childlist=root.ChildNodes;//判断该节点下是否有子节点root.    阅读全文
        
            posted @ 2012-11-14 14:37
菜鸟程序猿
阅读(7167)
评论(0)
推荐(0)
        
        
            
        
        
摘要:        
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml.Linq;using System.IO;namespace Linq_1{ public class Student { public string Name { get; set; } public bool Sex { get; set; } public int Age { get; set; } } class Progra...    阅读全文
        
            posted @ 2012-11-14 10:13
菜鸟程序猿
阅读(393)
评论(1)
推荐(0)
        
        
 
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号