读取项目中的xml文件 [英] reading a xml file which is in project

查看:49
本文介绍了读取项目中的xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何读取项目中的 xml文件.?

How to read a xml file which is in the project..?

XmlTextReader reader = new XmlTextReader("???????????");//what i write here..?



我收到filenotfound异常.



I am getting filenotfound Exception.

推荐答案

您需要编写xml文件的路径.
http://support.microsoft.com/kb/307548 [
You need to write the path of your xml file.
http://support.microsoft.com/kb/307548[^]


^ ]

通常,快速浏览文档将有很长的路要走.
The URL for the file containing the XML data. The BaseURI is set to this value.[^]

Generally a quick look in the documentation goes a long way.


对于初学者 [ ^ ]


这篇关于读取项目中的xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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