在vb.net项目中的哪里存储XML?我应该将其存储为嵌入式资源吗?

在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.