renmin  
常常被别人以为是高手

var attrValue = from a in (
                from x in root.Descendants() select x  //根节点下所有的Element
                ).Attributes()                 //获得每个Element的Attribute     
                select a.Value;

posted on 2009-04-22 09:51    阅读(327)  评论(0编辑  收藏  举报