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>
Code
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
};
When a project with the same time I open Mozilla and IE8 this error my xml files in use by another user, but of course sometimes gives this error and sometimes no error
EDIT
If two users request the same time give the display a page that uses XML. In this case, both at the same time I want an XMl open that gives error this file use by another user