المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : i got some xml questions



C# Programming
05-05-2009, 06:01 PM
i have a calendar that i click on one day, then when i have that day marked i write something in a textbox, after that i klick on my button and it should be saved, now my issue is:
i DO NOT want to create a new xmlfile dynamicly, i already have one xmlfile that i've added to the project, and i want it to store the day on the calendar that i clicked on, and the text that i wrote in my textbox, it should resoult like this:


< tuesday 5th may 2009 > today im going to write in codeproject forum < tuesday 5th may 2009>



< some day that i chose > blabla < some day that i chose>




i hope you get the point?
so for each day i add a text on, i want it to generate a number ( i have already solve that problem )



int ID = 0;

while (readcalendar.Read())
{
if (readcalendar.Name.StartsWith("Plan"))
{
ID++;
}
}

and i also want to be able to Load the xmlfile each time i start my project, so that my "planings" is saved on the days i planed them. (ex. if i click on a day that i already have a plan on i want to be able to edit the text that already exist )

i have checked google for answers but i did not find anythinghttp://www.barakasoft.com/script/Forums/Images/smiley_frown.gif and im a bit new to xml, so even if i've maybe stumbled on a correct answer i may have not looked into it.

if you dont understand my question, feel free to ask http://www.barakasoft.com/script/Forums/Images/smiley_rolleyes.gif