Sorry to ask such a silly question, but I got stuck up ..........
I need to create a xml file dynamically, the structure of that file is-->
<Login>
<id userName="Tushar" passWord="Tushar">
<Name>Tushar</Name>
<Age>24</Age>
</id>
</Login>
I am not able to create the attributes inside the root tag (ie userName="" and passWord="") is not being created
I am using simple windows application
Some Important namespace that you might require is
using System.Xml;
using System.IO;