Here's the code for the index.xml file on the blogger -
-
<?xml version="1.0" encoding="<$MTPublishCharset$>"?>
-
<rss version="2.0">
-
<channel>
-
<title><$MTBlogName remove_html="1" encode_xml="1"$></title>
-
<link><$MTBlogURL$></link>
-
<description><$MTBlogDescription remove_html="1" encode_xml="1"$></description>
-
<language><$MTBlogLanguage ietf="1"$></language>
-
<copyright>Copyright <$MTDate format="%Y"$></copyright>
-
<lastBuildDate><MTEntries lastn="1"><$MTEntryDate format_name="rfc822"$></MTEntries></lastBuildDate>
-
<generator>http://www.sixapart.com/movabletype/?v=<$MTVersion$></generator>
-
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
-
-
<MTEntries lastn="15">
-
<item>
-
<title><$MTEntryTitle remove_html="1" encode_xml="1"$></title>
-
<description><$MTEntryBody encode_xml="1"$></description>
-
<link><$MTEntryPermalink encode_xml="1"$></link>
-
<guid><$MTEntryPermalink encode_xml="1"$></guid>
-
<category><$MTEntryCategory remove_html="1" encode_xml="1"$></category>
-
<pubDate><$MTEntryDate format_name="rfc822"$></pubDate>
-
</item>
-
</MTEntries>
-
</channel>
-
</rss>
-
Here's my javascript file which returns an allert that it could not handle the file -- I'm sure it has to do with me not defining what variables that the blogger is returning, but is there a way to handle such variables? -
-
var channelvar=xml_doc.getElementsByTagName('channel');
-
var titlevar=xml_doc.getElementsByTagName('title');
-
var linkvar=xml_doc.getElementsByTagName('link');
-
var descriptionvar=xml_doc.getElementsByTagName('description');
-
var languagevar=xml_doc.getElementsByTagName('language');
-
var copyrightvar=xml_doc.getElementsByTagName('copyright');
-
var lastBuildDatevar=xml_doc.getElementsByTagName('lastBuildDate');
-
var generatorvar=xml_doc.getElementsByTagName('generator');
-
var docsvar=xml_doc.getElementsByTagName('docs');
-
var guidvar=xml_doc.getElementsByTagName('guid');
-
var categoryvar=xml_doc.getElementsByTagName('category');
-
var pubDatevar=xml_doc.getElementsByTagName('pubDate');
-
-
-
for (i=0;i<channelvar.length;i++)
-
{
-
if (channelvar[i].nodeType==1)
-
{
-
document.writeln(titlevar[i].childNodes[0].nodeValue + '<br>');
-
document.writeln("<a href='" + linkvar[i].childNodes[0].nodeValue + "' target=_blank>" + linkvar[i].childNodes[0].nodeValue + "</a><br>");
-
document.writeln(descriptionvar[i].childNodes[0].nodeValue + '<br>');
-
document.writeln(languagevar[i].childNodes[0].nodeValue);
-
document.writeln(copyrightvar[i].childNodes[0].nodeValue);
-
document.writeln(lastBuildDatevar[i].childNodes[0].nodeValue);
-
document.writeln(generatorvar[i].childNodes[0].nodeValue);
-
document.writeln(docsvar[i].childNodes[0].nodeValue);
-
document.writeln(guidvar[i].childNodes[0].nodeValue);
-
document.writeln(categoryvar[i].childNodes[0].nodeValue);
-
document.writeln(pubDatevar[i].childNodes[0].nodeValue + "<br> <br>");
-
}
-
}
-
-
As usual, thanks in advance for any help :-)
1 2183 Dököll 2,364
Recognized Expert Top Contributor
Hi!
I am not sure why it is not doing what you intended it to. Here's an RSS Feed validator site: http://www.feedvalidator.org/
Give it a go, see what comes up, ok!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Brady Love |
last post by:
I am currently working an an app that will post and edit blogs on
blogger. Right now I have it so I can recive a list of the blogs and
the content of those blogs using Atomizer. This is my first program
where I am accessing data over the net.When I go to retrieve the list
of blogs my program acts like it is locked up/frozen for a few seconds
and then when it is done it goes back to normal. Does anyone know how I
would get rid of the...
|
by: Pete.Cloth |
last post by:
Can someone please help me with this. I need to align a picture onto a
"blogger"?
HELP!
|
by: Hymer |
last post by:
Hello,
I have a blog with link information at the bottom of each article. I
just added a text-to-speech link from Talkr where you can "Listen to
this article." Everything is working fine from the blog but the
"Listen to this article" link is not showing on my RSS Feed.
The RSS Feed goes through FeedBurner which is set for Full Article and
SmartCast is on. The feed does validate with two warnings generated by
server side HTML .
|
by: Jim |
last post by:
I'm a newbie so I'm probably doing something simple and dumb but I just
can't get Blogger to accept a JavaScript for/next loop.
Here's what I've tried
<Script Language='JavaScript>
{
for (var i = 0; i < 16; i++)
{
Code to do stuff here with checkboxes. But, no matter what I put
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |