我们能否通过"pRootNode-> Find("//action");"找到xml中的特定节点? [英] Can we find a particular node in a xml by "pRootNode->Find("//action");"

查看:56
本文介绍了我们能否通过"pRootNode-> Find("//action");"找到xml中的特定节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


1-我们可以通过以下代码在xml中找到特定的节点(例如操作").

Hi,
1- Can we find a particular node (e.g. "action") in a xml by the following code.

NodeSet oAction = pRootNode->Find("//action");



2-如果在不同的父节点中嵌入了一个以上的动作"节点,将会发生什么?



2- what will happen if there are more then one "action" nodes, embedded in different parent nodes?

推荐答案

是的,您可以从任何节点中找到任何节点.请参阅对xpath的参考.
Yes, you can find any node from any node. See reference to xpath.


这篇关于我们能否通过"pRootNode-> Find("//action");"找到xml中的特定节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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