473,386 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to make a blog with an XML feed?

Blogs are pretty basic. Yet many of them have an XML feed so they can be
aggregated, and I've been trying to figure out the best way to do this.

Of course one way would be to put your blog writings in a SQL database,
but this seems like overkill. And there are programs sold that do
everything a blog could want. However I want to whip one up with
ASP.NET.

In what form should the blog writings be kept? And how can they be
easily changed on a daily basis?

After searching with Google I can't find any examples on how to create a
blog using ASP.NET that has an XML feed. Any suggestions are
appreciated.

Thanks for your help.
Nov 18 '05 #1
4 1383
Take a look at the .Text project in the Workspaces
section of GetDotNet (http://www.gotdotnet.com). It is a
blog that has been developed using the .NET Framework and
it probably already has the stuff that you're looking for.

Bruce Johnson
http://www.objectsharp.com/Bruce
-----Original Message-----
Blogs are pretty basic. Yet many of them have an XML feed so they can beaggregated, and I've been trying to figure out the best way to do this.
Of course one way would be to put your blog writings in a SQL database,but this seems like overkill. And there are programs sold that doeverything a blog could want. However I want to whip one up withASP.NET.

In what form should the blog writings be kept? And how can they beeasily changed on a daily basis?

After searching with Google I can't find any examples on how to create ablog using ASP.NET that has an XML feed. Any suggestions areappreciated.

Thanks for your help.
.

Nov 18 '05 #2
Bruce Johnson wrote:

Take a look at the .Text project in the Workspaces
section of GetDotNet (http://www.gotdotnet.com). It is a
blog that has been developed using the .NET Framework and
it probably already has the stuff that you're looking for.

Bruce Johnson
http://www.objectsharp.com/Bruce

================================================

Thanks. It seems to have too much actually. I'm not trying to run a
thousand blogs, just one.

I'd like to keep a database out of this. So that means text or XML
files of some sort. But I can't think of a good way to remotely edit
these files. I could always FTP a new one but that doesn't excite me.
Nov 18 '05 #3
The way I did this was to use Xml Serialization to store the individual blog
posts as xml files.

The BlogPost type was the basic object. members were something like:
string - header or "subject"
string - body content. this was just plain text.
DateTime - date posted
optional list of updates, changes or comments.

The object exposed a "save" method that used Xml Serialization to save
itself as a file, with a name derived from the date of the post. It also
exposed a constructor that accepted a date (and time); this method would
slurp in (deserialize) the BlogPost from the XML file with the matching
name. It had a default (no arg) constructor that would create a new blank
post and initialize the date.

To building an HTML layout from the various posts, I had an HTML template
(or skeleton). Within that template was a "BlogPosts.ascx" control, which
iterated over each post and did an XSL transform on the XML files to
generate the HTML.

To produce an XML output, it's much simpler - just instantiate the array of
BlogPosts, the serialize each into Response.Out.

Including markup in the blogpost body content is a bit more complicated.

-D

"Bruce W..1" <br***@noDirectEmail.com> wrote in message
news:3F***************@noDirectEmail.com...
Bruce Johnson wrote:

Take a look at the .Text project in the Workspaces
section of GetDotNet (http://www.gotdotnet.com). It is a
blog that has been developed using the .NET Framework and
it probably already has the stuff that you're looking for.

Bruce Johnson
http://www.objectsharp.com/Bruce

================================================

Thanks. It seems to have too much actually. I'm not trying to run a
thousand blogs, just one.

I'd like to keep a database out of this. So that means text or XML
files of some sort. But I can't think of a good way to remotely edit
these files. I could always FTP a new one but that doesn't excite me.

Nov 18 '05 #4
"Dino Chiesa [Microsoft]" wrote:

The way I did this was to use Xml Serialization to store the individual blog
posts as xml files.

The BlogPost type was the basic object. members were something like:
string - header or "subject"
string - body content. this was just plain text.
DateTime - date posted
optional list of updates, changes or comments.

The object exposed a "save" method that used Xml Serialization to save
itself as a file, with a name derived from the date of the post. It also
exposed a constructor that accepted a date (and time); this method would
slurp in (deserialize) the BlogPost from the XML file with the matching
name. It had a default (no arg) constructor that would create a new blank
post and initialize the date.

To building an HTML layout from the various posts, I had an HTML template
(or skeleton). Within that template was a "BlogPosts.ascx" control, which
iterated over each post and did an XSL transform on the XML files to
generate the HTML.

To produce an XML output, it's much simpler - just instantiate the array of
BlogPosts, the serialize each into Response.Out.

Including markup in the blogpost body content is a bit more complicated.

-D

================================================== =====

That's more along the lines of what I was thinking. What did you use to
write new blog posts, just a textbox?

I could have a subdirectory for each blog topic, into which the
serialized XML files go. A read of this subdirectory directory could
create a nav between the topics.
Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mark Carter | last post by:
I currently use python to automatically summarise a certain newsgroup daily, and post the findings that it makes. Someone has suggested that they would like a to see a blog of the posts. I wondered...
6
by: Chance Hopkins | last post by:
This is driving me nuts. As far as I can tell, a blog is a website with an RSS feed. Some seem to have a calendar of events and some support user authentication and forms. Am I missing anything?...
6
by: Martijn Coppoolse | last post by:
Hello everyone, I've got two little apps which are able to create a window that displays something on the desktop, but are not clickable. Instead, when you click on the window, the item...
4
by: Vinayak | last post by:
Dear Members I'm new here. Please permit me to ask some newbie question I'm from a non-profit organization, working for gender equality. We wish to get a small message across to sister blogs...
0
by: RSS Feeder | last post by:
http://www.signgenerator.org/rss/ is an online RSS button generator that allows you to create customized mini banners (80x15 pixel images) for your blog or website. The 80x15 "blog buttons" are...
1
by: amiri.arash | last post by:
Hi! I want to feed the news section of my band - homepage with the mySpace blog of our band (in order to keep redundancy low). The band homepage is written in PHP. I wrote an xsl-stylesheet...
1
by: KMB | last post by:
Hey all, I was wondering if someone could give us a hand, since our problem relates somewhat to scripting. The blog on our site at http://www.weallsellout.com/blog/ has a problem with...
1
by: Victory | last post by:
Starting a blog - what do I do about feeds? I am starting a blog and notice that there are quite a few "feed" places like Yahoo, Odeo, feedburner etc. Is there a way to automatically update...
1
by: liuyuprc | last post by:
Not sure if this is the place this question should even be raised, but I am deeply troubled by this problem for days. I am now desperate. When i tried to add the blogs at MSN Space of my friends'...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.