AJAX Question

H

HC

I've just started to explore AJAX and am finding it very cool.

A quick question:

I'm using the following Javascript code to get some data from an XML page.

response = req.responseXML.documentElement;
itemDescription = response.getElementsByTagName('title')[0].firstChild.data;

The XML looks like this:

<?xml version="1.0" encoding="iso-8859-1"?>
<channel>
<title>Test</title>
</channel>

In Mozilla, it works, but in IE, it only works if the XML looks like such:

<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<channel>
<title>Test</title>
</channel>
</rss>

What does the <rss> tag do? Is there a better way to make IE work?

Thanks
HC
 

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

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top