-2
多個XML標籤搜索我有一個這樣的XML:通過使用LINQ
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ViewCardResponse xmlns="http://schemas.com" schemaVersion="1.0">
<CardActivations>
<CardNumber>074125</CardNumber>
<EffectiveFrom>2014-01-08</EffectiveFrom>
<Status>InActive</Status>
</CardActivations>
<CardActivations>
<CardNumber>074126</CardNumber>
<EffectiveFrom>2014-01-08</EffectiveFrom>
<Status>InActive</Status>
</CardActivations>
<CardActivations>
<CardNumber>074127</CardNumber>
<EffectiveFrom>2014-01-08</EffectiveFrom>
<Status>Active</Status>
</CardActivations>
</ViewCardResponse >
而且我有3個領域。我想知道Cardnumber的價值,從那個狀態爲'Active'的cardactivation生效,狀態。有人可以請建議一個LINQ查詢嗎?