【发布时间】:2014-09-28 17:45:02
【问题描述】:
我想从以下 XDocument 结构中删除特定值:
<plist version="1.0">
<dict>
<key>Main</key>
<array>
<dict>
<key>Password</key>
<string>*********</string>
<key>Username</key>
<string>testuser</string>
</dict>
</array>
<key>Profile</key>
<string>test profile 1</string>
</dict>
</plist>
假设我想删除与 key=Password 关联的字符串值,我该怎么做?
【问题讨论】:
-
您是否已经尝试过任何代码?
-
这个链接可以帮到你:stackoverflow.com/questions/2558787/…
-
我已经编辑了你的标题。请参阅“Should questions include “tags” in their titles?”,其中的共识是“不,他们不应该”。
-
感谢约翰的更新。这应该可以帮助我解决未来的问题!
标签: c# linq-to-xml