How to select Multiple XML Tags as XElement , filtering based on same attribute.
(如何选择多个XML标签作为XElement ,如何基于相同的属性进行过滤。)
I have Below code i want to select tags with are having action=true (我有以下代码我想选择具有action = true的标签)
<root>
<first action="true">
<path>E:Myfolder</path>
</first>
<second>
<path>C:Users</path>
</second>
<third action="true">
<name>Mytasks</name>
</third>
</root>
and Output shout be like this
(和输出喊像这样)
<first action="true">
<path>E:Myfolder</path>
</first>
<third action="true">
<name>Mytasks</name>
</third>
anybody please help me.
(有人请帮助我。)
I used FirstorDefault( ) But i am getting only one record among all (我使用了FirstorDefault( ),但是我只得到了一条记录)
ask by Prashanth Reddy Balemula translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…