2010-07-26 54 views

回答

1

你可能想考慮使用的XPath ..

XmlNodeList list = xmlDoc.SelectNodes("//nodeType[@attrName=attrValue]"); 

//This selects all elements of type 'nodeType' occuring anywhere in the document 
//having 'attrName' attribute of value 'attrValue' 
相關問題