WiseNewbie
Programmer
Hi,
I'm new to ASP.NET and C#. I'm trying to complete a website written for a friend, but he has one major requirement. That all the news items be stored in a XML File instead of a database. How do I use XML in ASP.NET?
I'd be formatting the XML Document like:
<News>
<NewsItem>
<Heading>Aliens are in Uranus</heading>
<Date>12/12/2012</Date>
<Description>Yadda yadda yadda</descriptioN>
</newsitem>
</news>
and so on, i'm also looking to sort those items by date(ascending order) but only have 4 items on the left hand menus - i'll cache these - but I'm stumped on how to actually use the XML side of .NET. I dislike DataGrids for this situation, i need to be able to loop around and write a custom bit of HTML to display the contents. I have no idea what XSL is either unfortunetly.
Thanks
I'm new to ASP.NET and C#. I'm trying to complete a website written for a friend, but he has one major requirement. That all the news items be stored in a XML File instead of a database. How do I use XML in ASP.NET?
I'd be formatting the XML Document like:
<News>
<NewsItem>
<Heading>Aliens are in Uranus</heading>
<Date>12/12/2012</Date>
<Description>Yadda yadda yadda</descriptioN>
</newsitem>
</news>
and so on, i'm also looking to sort those items by date(ascending order) but only have 4 items on the left hand menus - i'll cache these - but I'm stumped on how to actually use the XML side of .NET. I dislike DataGrids for this situation, i need to be able to loop around and write a custom bit of HTML to display the contents. I have no idea what XSL is either unfortunetly.
Thanks