使用C#.NET的XPATH中的逗号分隔列表 [英] Comma separated list in XPATH using C#.NET

查看:75
本文介绍了使用C#.NET的XPATH中的逗号分隔列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我解决XPATH问题吗?

我想生成以下内容:

测试1,测试2

来自:


测试1


测试2

Can anyone help me out of this XPATH problem?

I want to generate the following :

test 1, test 2

from:



Test 1


Test 2

推荐答案

我在Mac上,因此无法轻松解决您的问题.在发布预览之前,您是否考虑过预览?

只需将节点作为节点集读取,然后从此处构建逗号分隔列表.当您标记了几乎没有用的.NET 3.5问题时,我们不知道您是使用C#还是VB.NET,但是我希望代码在任何版本的.NET中都是相同的.
I am on my Mac and so I can''t easily fix your question. Did you consider LOOKING at the preview before posting it ?

Just read the nodes as a nodeset, and then build your comma seperated list from there. As you''ve tagged your question .NET 3.5, which is almost worthless, we have no idea if you''re using C# or VB.NET, but the code would be the same in any version of .NET, I expect.


这篇关于使用C#.NET的XPATH中的逗号分隔列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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