<?xml version="1.0" encoding="utf-8" ?>
  <Table>
    <node ID="1" PintName="abc" objectId="87678" FunctionId="1"/>
    <node ID="2" PintName="def" objectId="39392" FunctionId="1"/>
    <node ID="3" PintName="ghi" objectId="996378" FunctionId="2"/>
    <node ID="4" PintName="jkl" objectId="996378" FunctionId="2"/>
    <node ID="5" PintName="mnl" objectId="996378" FunctionId="2"/>
  </Table>我想取出条件为—>FuctionId=2 的所有PointName值,然后将其放在ArrayList中,这个条件语句应该怎么写。已知道无条件时去PointName的写法如下string xmlPath = @"C:\Documents and Settings\user\My Documents\Visual Studio 2010\Projects\XMLDB\XMLDB\XMLFile1.xml";
            XDocument xdoc = XDocument.Load(xmlPath);            var query = from x in xdoc.Descendants("node")
                        select x.Attribute("PintName").Value;            foreach (var q in query)
            {
                _PointName.Add(q);
            }