-
February 22nd, 2007, 20:08 PM
#1
Bronze Member
Rss
There are a lot of help files on rss xml scripting. Look up anything from the following below might help...
file.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<xml-tag>
<child-xml-tag>
</child-xml-tag>
</xml-tag>
script.js
xmlDoc = document.implementation.createDocument("", "", null);
xmlDoc.onload = writeList;
xmlDoc.load("file.xml");
function writeList()
{
var rss = xmlDoc.getElementsByTagName("xml-tag");
for (j=0; j < rss[i].childNodes.length; j++) {
rss[i].childNodes[j].text;
if (rss[i].childNodes[j].nodeName == "#text") {
alert(rss[i].childNodes[j].nodeValue);
}
}
Trouble for me is that Im using firefox and none of this seems to work. Well i say none of this but a fair amount. cant get any values from childNode(s) pluss childNode doesn't work itself after trying lots of different code just to get this far !!!!
Can anyone help us please
-
February 23rd, 2007, 21:59 PM
#2
Bronze Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks