VB-macro want for generating RSS-file

J

Jos Landsheer

Hi,

I'm looking for a macro that I can use in Frontpage to generate a
RSS/XML-file.

What I mean is something like this:

The HTML-body of page xxx.htm is:

<h2><a name="art1"></a>Headline 1</h2>
<p>This is the first line of article 1. This is the second line./p>

<h2><a name="art2"></a>Headline 2</h2>
<p>This is the first line of article 2. This is the second line.</p>

....

<h2><a name="artn"></a>Headline n</h2>
<p>This is the first line of article n. This is the second line.</p>


I want the macro to generate a file xxx.xml which should look something
like this:

<?xml version="1.0"?>
<rss version="2.0">

<channel>

<title>Some title</title>
<link>http://www.mysite.nl/xxx.htm</link>
<description>Some description of mysite</description>

<item>
<title>Headline 1</title>
<link>http://www.mysite.nl/xxx.htm/#art1</link>
<description>This is the first line of article 1.</description>
</item>

<item>
<title>Headline 2</title>
<link>http://www.mysite.nl/xxx.htm/#art2</link>
<description>This is the first line of article 2.</description>
</item>

.....

<item>
<title>Headline n</title>
<link>http://www.mysite.nl/xxx.htm/#artn</link>
<description>This is the first line of article n.</description>
</item>

</channel>

</rss>


I'm not a Visual Basic expert and I guess somebody has done something
like this before... Maybe you can help!

TIA,

Jos Landsheer
([email protected])
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top