Hello,
Im having trouble reading more than one tag at a time from my XML file. Basically I want the javascript to filter through the XML using a for loop or a while loop.. I’ve tried both but my logic must had been flawed somewhere… here is the simple code I have.
[code=php]
<script>
var xmlDoc = new ActiveXObject(“Microsoft.XMLDOM”)
xmlDoc.async=”false”
xmlDoc.load(“RSSFeed.xml”)
document.write(xmlDoc.getElementsByTagName(“pubdate”).item(1).text);
document.write(” – “);
document.write(xmlDoc.getElementsByTagName(“description”).item(1).text);S
</script>
So I basically want some type of loop to pull all of those values I specified above in the code (pubdate and Description) Thanks for your help I really appreciate it.