C# 如何查找字符串xml文件并替换为其他字符串(值)

C# 如何查找字符串xml文件并替换为其他字符串(值),c#,xml,windows-8,C#,Xml,Windows 8,我的xml文件有问题 <OneGoal> <Goal>80000$ in year</Goal> <Step>lack content</Step> <Step>lack content</Step> <Step>lack content</Step> <Step>lack content</Step> <Step>lack content</St

我的xml文件有问题

<OneGoal>
<Goal>80000$ in year</Goal>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<Step>lack content</Step>
<DateDay>17</DateDay>
<DateMonth>6</DateMonth>
<DateYear>2015</DateYear>
</OneGoal>

每年8万美元
缺乏内容
缺乏内容
缺乏内容
缺乏内容
缺乏内容
缺乏内容
缺乏内容
缺乏内容
缺乏内容
缺乏内容
十七,
6.
2015

我有一个带有文件中步骤的组合框。我有一个复选框,当我单击SelectItemComboBox(任何人单击,SelectFile=“do sport”,我替换为“remove”)时,我必须从列表和文件中删除该步骤。我怎么样

您可能正在寻找这样的产品:

所以,像这样尝试吧

/OneGoal/Step[text()="remove"]

这一点目前还很不清楚。你到底在找什么?你的组合框从这个xml文件中加载所有标记?您想从combobox和xml文件中删除一项?Right@Axarydax。也许我加上第一步,第二步等等?用户选择步骤,例如“缺少内容”,并选中复选框。步骤从combBox中删除,我希望在xml文件中删除。
/OneGoal/Step[text()="remove"]