[英]How find string xml file and replace with other string( value)
I have problem with my xml file 我的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>
I have comboBox with step from file. 我有来自文件一步的comboBox。 And I have checkBox, wheare I click SelectItemComboBox(Anybody click, SelectFile = "do sport" , and i replace to " remove") must remove step from list and file.
而且我有checkBox,请单击SelectItemComboBox(任何人单击,SelectFile =“ do sport”,然后替换为“ remove”)必须从列表和文件中删除步骤。 How I do ?
我怎样做 ?
Probably you are looking for something like this: XPath: How to select elements based on their value? 可能您正在寻找这样的东西: XPath:如何根据元素的值选择元素?
Element[@attribute1="abc" and @attribute2="xyz" and text()="Data"]
So, try it like 所以,尝试一下
/OneGoal/Step[text()="remove"]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.