[thelist] ASP blog-style news into an RDF file for syndication?
aardvark
roselli at earthlink.net
Mon Dec 17 23:56:18 CST 2001
> From: "Ryan J. Markel" <markel at planetmarkel.com>
>
> I'm trying to figure out how to take my ASP output and somehow twist
> it into an RDF file I can host in order to syndicate the content of my
> site.
[...]
> I've been looking for a *simple* way to get my site blog content and
> output to an RDF file. A *simple* rdf file. The file at
> http://slashdot.org/slashdot.rdf is a great example.
well, if you're using ASP, i assume you're on IIS...
view the source on the slashdot RDF feed, and save that to your
machine... that's now your template... everywhere there's /.
content, you'll be replacing that with your blog content...
now, take your article listing page from your blog, and make a
version of it that outputs to the screen *exactly* as you see the /.
version... but with your content...
take that output as a string and pipe it to a text file with the .rdf
extension... don't create an .rdf page dynamically with every call,
that's just a lot of load, instead, automate that creation (perhaps
you call a web page from home, or schedule its creation,
whatver...) so the file gets updated at whatever interval you like...
make sure the MIME type for .rdf is set to text/xml... (btw, if you
get a chance, look at the X-Fry header sent by the /. server)
anyone who calls that .rdf file should get just what they need now...
that's the general gist... i leave the details of implementation to
you... but it is surprisingly easy to create, and others here may
have different techniques...
if i missed some step, whoops, it's late and the swiss cheese is
going to my head...
More information about the thelist
mailing list