SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: turning an XML into a string
-
Jan 19, 2007, 18:18 #1
- Join Date
- Jan 2007
- Posts
- 7
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
turning an XML into a string
Hi,
How can I use JS to turn the XML of an RSS into one big string.
The reason is because I want to use this JS:
http://www.captain.at/howto-ajax-parse-rss.php
and some DOM parsing to get an RSS feed onto my website.
Please point me in the right direction. Thanks!
Note: the RSS is at another location, so using XMLhttpRequest doesn't work.
I figure all I am doing is getting the plain text of an RSS feed, so this should not be that hard.
Thanks in Advance!
-
Jan 19, 2007, 20:39 #2
- Join Date
- Mar 2001
- Posts
- 3,537
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Note: the RSS is at another location, so using XMLhttpRequest doesn't work.
mypage.php
PHP Code:<script type="text/javascript">
<?php
$str = /*get rss feed data somehow*/;
echo("var rssStr = $str");
?>
alert(rssStr);
</script>
-
Jan 20, 2007, 03:06 #3
Bookmarks