如何在运行时更改节点? [英] how to change a node during runtime?

查看:72
本文介绍了如何在运行时更改节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 您好,我是一名XML初学者,想要更改节点< Tabelle1>在运行期间

 Hi, i am a XML beginner and would like to change the node <Tabelle1> during runtime

如果变量具有特定值,那么它应该是< Tabelle1>

if a variable has a specific value, then it should be <Tabelle1>

如果变量具有另一个特定值,则它应该是< Tabelle2>

if a variable has a another specific value, then it should be <Tabelle2>

感谢您的帮助。

这样的代码:

推荐答案

如果整数
变量是1或2,那么试试这个:

If the integer Variable is either 1 or 2, then try this:

For Each contact As XElement In If(Variable = 1, Contactlist...<Tabelle1>, Contactlist...<Tabelle2>)
. . . . .








这篇关于如何在运行时更改节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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