作者:上善若水纯_310 | 来源:互联网 | 2023-05-18 11:43
I've got an XML with a structure like the following;
我有一个XML结构如下;
- 5
- 3006
- 25
- 458
- 15
- 78
How do I delete the item with the value 458. Just to clarify this, I don't know the index of that item, so simply calling delete items[index] won't do here. I have to delete by value.
如何删除值为458的项目。为了澄清这一点,我不知道该项目的索引,因此只需调用删除项目[index]就不会在此处执行。我必须按值删除。
Any hints?
任何提示?
2 个解决方案