以编程方式将xml添加到根文件夹 [英] Add xml to root folder programatically

查看:72
本文介绍了以编程方式将xml添加到根文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要动态创建xml文件.我能够保存数据
如果我在根文件夹中手动添加了xml文件(aaa.xml).

我想将aaa.xml文件动态添加到根文件夹.任何人都可以
帮助我如何以编程方式将xmlfile(aaa.xml)添加到根文件夹中

Hi,

I need to create xml file dynamically.I am able to save the data
if i have xml file(aaa.xml) added manually in root folder.

I want to add aaa.xml file to root folder dynamically.can anyone pls
help me how to add xmlfile(aaa.xml) to root folder programatically

推荐答案

您的问题尚不清楚:您知道如何创建XML文件但正在获取尝试在根文件夹中创建它时出错,还是不知道如何以编程方式创建XML文件?

Vista(我认为是Win7)不允许应用程序在根文件夹中创建文件.放置应用程序特定文件的适当位置是 C:\ Program Files \(应用程序名称)\ .
Your question is unclear: do you know how to create an XML file but are getting an error when you try to create it in the root folder, or do you not know how to create an XML file programmatically?

Vista (and, I think, Win7) does not allow applications to create files in the root folder. The proper place to put application specific files is C:\Program Files\(App Name)\.


此处介绍如何在以下位置动态创建XML运行时:
以编程方式创建新的XML文档 [
Here you go of how to create an XML dynamically at runtime:
Programmatically creating a new XML document[^]
Also make sure you give write permissions to the root folder such that you can create a new aaa.xml in it. :thumbsup:


这篇关于以编程方式将xml添加到根文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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