Reading XML News
page 1 of 4
Published: 25 Jan 2001
Unedited - Community Contributed
Abstract
If you're dealing with a site that uses data in a constant format (eg. news articles), then storing that data in XML is an easy way to manage that content. This article covers parsing and displaying that content in ASP.NET.
by . .
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 26749/ 39

Introduction

If you run a site that displays news, or headlines or something and you want an easy way to add and edit those pages then this article is for you. This article will show you how to display news headlines on a site with a little bit of ASP.NET. Also, you should see the 'Live Demo' at the bottom of most code samples, this links to a page where Ialready have something like this set up.

Browsing XML with ASP.NET

In ASP I found navigating an XML file without actually seeing it was extremely difficult and ASP.NET didn't help much. ASP.NET has several objects that you can use to browse an XML file, after much searching, exploring and experimenting I found that the XMLTextReader was the best one for the job (and the one that didn't give me as many annoying error messages). Someone should really create a visual XML to ASP.NET creator.

The XMLTextReader has one basic function - Read XML, that's it, not write or edit or validate, read. It's much like the DataReader, but with XML. But on to the XML code.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





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


©Copyright 1998-2017 ASPAlliance.com  |  Page Processed at 2017-05-29 1:12:44 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search