的XMl错误:由其他用户
<?xml version="1.0" encoding="utf-8"?>
<Questions>
<Question>
<Id>1</Id>
<Text>aaaa</Text>
</Question>
<Question>
<Id>2</Id>
<Text>bbb</Text>
</Question>
</Questions>
代码
var doc = XDocument.Load(Server.MapPath(".") + "\\Questions.xml");
var elements = from element in doc.Descendants("Question")
select new
{
Id = element.Element("Id").Value,
Text = element.Element("Text").Value,
Reserver = element.Element("Reserver") != null
};
这个文件方可使用,同时我打开使用Mozilla和IE8这个错误我的XML文件的其他用户的一个项目,但当然,有时会出现此错误,有时没有错误
编辑
如果两个用户请求SA我时间给显示一个使用XML的页面。在这种情况下,我同时希望打开一个XMl,使其他用户可以使用该文件。
问题是什么? – Alex 2011-03-25 15:22:43
错误:此文件由其他用户使用 – ashkufaraz 2011-03-25 16:02:49
我可以在问题的标题中看到* this *。你能解释你想做什么吗?你在谈论什么*项目*(来自你的问题)? – Alex 2011-03-25 16:26:22