在vb.net项目中的哪里存储XML?我应该将其存储为嵌入式资源吗? [英] Where to Store XML in a vb.net project? should i store it as an embedded resource?
本文介绍了在vb.net项目中的哪里存储XML?我应该将其存储为嵌入式资源吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将xml存储在vb.net项目中.我将使用该xml读取和写入"数据.
我曾尝试将xml存储为嵌入式资源,但您无法编辑嵌入式资源. :(
请提出其他存储XML的方法.
谢谢,
Tarun
i need to store the xml in a vb.net project. i will use that xml to both read and "WRITE" data into it.
i have tried storing my xml as an embedded resource but u cant edit an embedded resource. :(
Please suggest some other way of storing that XML.
Thanks,
Tarun
推荐答案
您只需将XML写入文件....
在我的一个项目中,我使用XML文件存储自定义设置,只需从应用程序路径中的文件中读取和写入该文件即可.但是,您可能希望将其存储在用户个人资料中.
基本上,您可以将其存储在所需的任何位置,只要运行该应用程序的帐户对所选文件系统位置具有读/写访问权限即可.
You could simply write the XML to file....
In one of my projects I use an XML file for storing custom settings, it simply get read from and written to a file in the application path. However, you may want to store in a users profile somewhere.
Basically, you can store it anywhere you want, providing the account the application is being run under has read/write access for the chosen file system location.
这篇关于在vb.net项目中的哪里存储XML?我应该将其存储为嵌入式资源吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文