我的XML是從哪裏來的,我必須取出一本書詳細刪除XML標籤C#
<Books>
<bookdetail>
<bookname>ThreeIdiot</bookname>
<bookauthor>chetan bhagat</bookauthor>
<bookid>idi001</bookid>
<isavailable>true</isavailable>
<subscribername>NA</subscribername>
</bookdetail>
<bookdetail>
<bookname>Csharp</bookname>
<bookauthor>Kanitker</bookauthor>
<bookid>Cshar001</bookid>
<isavailable>true</isavailable>
<subscribername>NA</subscribername>
</bookdetail>
<bookdetail>
<bookname>VBbasic</bookname>
<bookauthor>Andrew Parker</bookauthor>
<bookid>idi001</bookid>
<isavailable>true</isavailable>
<subscribername>NA</subscribername>
</bookdetail>
</Books>
現在我要與bookid == Cshar001
刪除圖書詳細信息, 請讓我知道任何的LINQ命令使用將搜索並從XML中只刪除該標籤。
看起來這是一門功課 – 2010-04-21 10:22:03