winforms - Working with XML -
I am planning to create a news item that uses XML because it is backend and the display should be the same:
Date: 08 / March / 2010
------------------------------
Title & nbsp; & Nbsp; | News
------------------------------ News 4 | Some News
News 3 | Some News
News 2 | Some News
News 1 | Some News ------------------------------ Date: 07 / Mar / 2010
- ------- --------------------- Title & nbsp; & Nbsp; | News
------------------------------
News 5 | Some News
News 4 | Some News
News 3 | Some News
News 2 | Some News
News 1 |
Today's news item should be on top , Then the title should be sorted - (similarly), later the news items of the previous day will arrive.
I did not come with XML argument which should be used in this case. Apart from this, I do not understand how to check "Today's date" in XML's "if" statement. Can I get some code samples to understand this type of logic ???
---- Last Question ---------------------- -------------- ----------------------------- How can I export a data from textbox 1, text box 2 & amp; ; My winform on Textbox3 (Visual Studio C #) so that it can automatically create an XML file with the proper location of these data ????
We say:
textBox1 = Name:
textBox2 = age:
textBox3 = roll number
exported XML can be added so it is good (If we export the data again, add new figures to the EOF.
Any idea plz .....
There are several ways to create XML files.NET. You can use it, ...,
Here's an example:
New XDocument (new XElement ("user", new XElement ("name", textbox1.Text), new XElement ("um ("User.xml");
Generate an XML file, the new XElement ("rollo", text box 3. text)). Can look like this:
Comments
Post a Comment