You can probably see that there are some additions to the code that would have made it more flexible, but I don't want to show you pages and pages of code. Some additions that wouldn't take a lot of work could include -
- Add parameters to the Display_News() sub. Control what is displayed (image, byline, blurb etc.), control how it is displayed (font, table/flowing) etc.
- Make the headline/image the link. This would take a bit more work, but assuming that you keep to the same XML guidelines it should be fine.
- If multiple people are going to be using the file then you should add a schema an XML Validator to make sure that they stick to the guidelines.
You can use this code just about anywhere to parse an XML file, not just for a news page. There are some tweaks there that you may want to include to improve the code, you could also use the XMLTextWriter to build a page that adds new news and removes old news. Also see in the left column that you can discuss the article as well as some other stuff.