如何检查xml数据是否存在 [英] how to check xml data present or not

查看:98
本文介绍了如何检查xml数据是否存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有xml文件:

<?xml version =" 1.0"?>

- < doc title =" test">

- <员工>

< keyName> Amol< / keyName>

< Keyvalue> 22< / Keyvalue>

< /员工>

< / doc>


下次运行应用程序并输入密钥名称John和keyvalue 25然后我想更新我的xml文件,如

我有xml文件:

<?xml version =" 1.0"?>

- < doc title =" test">

- <员工>

< keyName> Amol< / keyName>

< Keyvalue> 22< / Keyvalue>

< /员工>

- <员工>

< keyName> John< / keyName>

< Keyvalue> 25< / Keyvalue>

< / Employee>

< / doc>

它是在vb6.0

现在一切都很清楚了所以

请帮助我它的argent

I have xml file:
<?xml version="1.0"?>
-<doc title="test">
-<Employee>
<keyName>Amol </keyName>
<Keyvalue>22</Keyvalue>
</Employee>
</doc>

next time when I run the application and enter keyname John and keyvalue 25 then I want to update my xml file like
I have xml file:
<?xml version="1.0"?>
-<doc title="test">
-<Employee>
<keyName>Amol </keyName>
<Keyvalue>22</Keyvalue>
</Employee>
-<Employee>
<keyName>John </keyName>
<Keyvalue>25</Keyvalue>
</Employee>
</doc>
It is in vb6.0
now everything is clear so
please help me its argent

推荐答案

完全取决于所使用的程序。


当然,您可以用眼睛看代码来检查它...... * gg *
that solely depends on the programme used.

of course, you could just look at the code with your eyes to check for it ... *gg*


错误的答案我不期待这个来自网站
bad answer I am not expecting this from the site


所以......我的答案很糟糕,因为你什么都没给我弄明白这个问题?


显然你不尊重有人自愿做这种工作的努力。
so ... my answer is bad because you give me nothing at all to figure out the problem?

obviously you do not honour the effort someone takes voluntarily doing that kind of work.


这篇关于如何检查xml数据是否存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆