在内存中操纵XML [英] manipulating XML in memory
本文介绍了在内存中操纵XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我需要在内存中操作XML文档,然后将该文档保存到磁盘。
可以这样做吗?
请建议我链接或发布一些示例代码。
基本上,我需要根据用户输入为xml文档写一些值。
像用户可以在文本框中输入一些文本。该值应存储在XML文档中。驻留在内存中。
当他点击保存此信息或文档保存到磁盘时。
非常感谢。
Hi all,
I need to manipulate a XML document in memory and then save that document to the disk.
Can this be done??
Please suggest me a link or post some sample code.
Basically, I need to write some values to a xml document based on the user input.
Like a user may enter some text in a Text box. This value should be stored in a XML doc. residing in the memory.
When he clicks save this info or the doc gets saved to disk.
Many thanks.
推荐答案
请告诉你使用的语言(Java,C#,Javascript ....?)
Please tell what language you are using (Java, C#, Javascript....?)
抱歉有点晚了...
我用C#
谢谢。
Sorry a bit late...
I use C#
Thanks.
我会使用XMLDocument。
见此链接。
I would use XMLDocument.
See this link.
这篇关于在内存中操纵XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文