Hello guys!

I am new to web development in general and C# particularly.

Recently I have been given a project to create a simple web application, using C# and .NET.

The application is divided into three parts: Data Access Layer with an XML file attached to it, the Business Layer and the User Interface Layer.

So the question is- could anyone give me a guideline or a clue on how to design the DAL using XML (The tutor said I shoulsn't use SQL for this purpose). I spent whole day to find any tutorial on XML Data Access, but couldn't fins any info on that. (((

If possile, could you please provide me with a link to a sample code or step by step tutorials on XML file based DAL using C# in Visual Studio Express.

Thanks in advance and sorry to bother you with such a newbie question.

You could look at LINQ to XML. I use it all the time to read XML files and parse them.


If this is for an assignment, I'll leave the actual DAL building up to you, but LINQ to XML will provide you the mechanisms for reading the XML file and generating objects you require.

As alc6379 says, LINQ to XML would be the best way of going about it.

Thanx guys, I will go fot LINQ then I suppose. Any idea how do I build DAL using LINQ?