AJAX Question



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



.



Relevant Pages

  • Re: e-commerce portal
    ... utilize separate customer and prospect/contact files for non-standard ... back to the OSS pool, so a lot of companies could benefit later on. ... I'm still limited by FlashCONNECTs inability to accept an XML post. ... Don't confuse Ajax with glitz. ...
    (comp.databases.pick)
  • Re: XMLHttpRequest - parsing returned data
    ... That collides with a rather old discussion "What's wrong with AJAX": ... for explicit script handling XML is ... simple responseText grabber where the responseText evolutionated from ... Next year I see further evolution of AJAX/JSON symbiotic use, ...
    (comp.lang.javascript)
  • Re: e-commerce portal
    ... back to the OSS pool, so a lot of companies could benefit later on. ... I'm still limited by FlashCONNECTs inability to accept an XML post. ... Don't confuse Ajax with glitz. ... browseable by bots for organic search engine indexing. ...
    (comp.databases.pick)
  • DISCUSS: CPAN Namespace for AJAX
    ... using the "X" in AJAX being at the top of the list.) ... XML marshalling for return values, and one that allows arbitrary text ... var xml = r.responseXML; ... zeros, in roughly equal proportions. ...
    (comp.lang.perl.modules)
  • Re: What Next?
    ... AJAX can be a very useful set of techniques, ... I didn't say not to bother learning XML -- just that it's not particularly ...
    (comp.lang.php)