使用具有多个替代路径的 selectNodes 或组合 2-3 个 IXMLDOMNODELIST
只是想知道是否有人能够帮助我编写以下 VBScript 脚本:
我可以做类似的事情吗:
Set obj = Something.selectNodes(path1, path2, path3) // 它将在哪里匹配任一路径?
或者,如果没有,有没有办法可以组合 selectNodes 返回的内容(IXMLDOMNodeList)?例如
设置 obj1 = some.selectNodes(path1) 设置 obj2 = Something.selectNodes(path2)
设置 obj3 = obj1 + obj2
提前非常感谢
Just wondering if anyone would be able to help with the following VBScript script I'm writing:
Can I do somthing similar to this:
Set obj = something.selectNodes(path1, path2, path3)
// Where it will match either of the paths?
Or, if not, is there a way I can combine what selectNodes returns (IXMLDOMNodeList)? e.g.
Set obj1 = something.selectNodes(path1)
Set obj2 = something.selectNodes(path2)
Set obj3 = obj1 + obj2
Many thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发现它实际上是我需要了解的 XPATH sytax,特别是像 SQL SELECT 语句一样使用 XPATH,例如
Set obj = Something.selectNodes([(path1 and path2) or path3])
Found it was actually XPATH sytax I needed to learn about, specifically using XPATH like an SQL SELECT statement, e.g.
Set obj = something.selectNodes([(path1 and path2) or path3])