每5分钟更改xml的位置 [英] change the position of xml every 5 mins

查看:80
本文介绍了每5分钟更改xml的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个xml文件,其中我总共有5个块,并且我想同时更改位置(即)一段时间后的第一个元素应该最后显示,反之亦然.

Hi
I have a xml file in which i have 5 blocks totally and i want to change the position simutaneously (i.e) The first element after a period of time should be displayed last and vice versa how to do it

推荐答案

答案似乎已经存在于您的问题中.

创建一个包含一个每5分钟委托一次的Timer的类.
当计时器代表随后读取您的文件时,请分割内容,对内容重新排序并保存回您的文件.
Looks like the answer is somehow already in your question.

Create a class which holds a Timer which delegates every 5 minutes.
When the timer delegates then read your file, split the content, re-order the content and save back your file.


Shashwath,
对我来说很坚强,但是像这样尝试
基于计时器控制,我们可以迭代应由相同根标记组成的XML文件标记.

http://www.c-sharpcorner.com/UploadFile/mahesh/ReadWriteXMLTutMellli2111282005041517AM/ReadWriteXMLTasp /a> [ ^ ]

从url上方开始,同时编写XML文档标签,我们将保留计时器来迭代
节点.
Hi Shashwath,
Very strong to me,But try like this
Based on timer control we can iterate the XML file tags that should be consist of same root tag.

http://www.c-sharpcorner.com/UploadFile/mahesh/ReadWriteXMLTutMellli2111282005041517AM/ReadWriteXMLTutMellli21.aspx[^]

from above url while writing the XML Document Tags, we will keep the timer to iterate the
Nodes.


这篇关于每5分钟更改xml的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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