I'm planning to create a news item which uses xml as it's backend and the Display should be like:
Date: 08/Mar/2010
------------------------------
Title | News
------------------------------
News 4 | Some news
News 3 | Some news
News 2 | Some news
News 1 | Some news
------------------------------
Date: 07/Mar/2010
------------------------------
Title | News
------------------------------
News 5 | Some news
News 4 | Some news
News 3 | Some news
News 2 | Some news
News 1 | Some news
- Display should be sorted on Date (descending)
- Then news items should be sorted on time (descending)
Today's news item should be on top, then titles should be sorted-decending (timewise), later will come previous day's news items.
I'm not able to come up with the logic of xml which should be used in this case. moreover I'm not able to figure out how should I check "Today's date" in xml's "if" statement. Can I please get some code sample to understand this kinda logic???
---- Previous Question ------------------------------------------------------------------
How can I export a data from textBox1, textBox2 & textBox3 on my winform (visual studio C#) so that it can automatically create an xml file with proper placing of these data????
Let's say:
textBox1 = Name:
textBox2 = Age:
textBox3 = Roll No
It would be great if the exported xml can be appended (add the new data in the EOF) if we export the data again.
Any idea plz.....