Working with XML...

Posted by gsvirdi on Stack Overflow See other posts from Stack Overflow or by gsvirdi
Published on 2010-02-02T10:57:03Z Indexed on 2010/03/08 6:21 UTC
Read the original article Hit count: 989

Filed under:
|
|

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

  1. Display should be sorted on Date (descending)
  2. 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.

---- 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.....

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xslt