0

我的 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>

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

4

1 回答 1

0

可能您正在寻找这样的东西:XPath: How to select elements based on their value?

Element[@attribute1="abc" and @attribute2="xyz" and text()="Data"]

所以,试试吧

/OneGoal/Step[text()="remove"]
于 2013-04-14T07:23:35.930 回答