Reading XML News
page 4 of 4
by . .
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 20488/ 49

Tips for Tweaks

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.

Summary

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.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-23 4:03:52 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search