[CODE]Code:Dim xml Dim teamA, teamB, scoreA, scoreB Set xml = Server.CreateObject("Microsoft.XMLDOM") xml.async = False xml.load (Server.MapPath("/sportfeeds/week11.xml")) set nodes = xml.documentElement.selectSingleNode("game") set childNode = nodes.childNodes for each childNodes in childNode 'Response.Write nodes.childNodes(1).text 'without the for loop Response.Write childNodes.text next
it works perfectly, exactly like the way i want.
my xml is setup so
the thing is that it only gets the FIRST node.. and i want it to loop to the next <game>.Code:<game> <teamA> <scoreA> <teamB> <scoreB> </game> <game> <teamA> <scoreA> <teamB> <scoreB> </game> <game> <teamA> <scoreA> <teamB> <scoreB> </game>
http://www.fakebets.net/sportfeeds/week11.xml
look i made it work in http://www.fakebets.net/readsportpage.asp
*ignore the marquee
edit: yes there are closing tags. the xml is perfectly valid.




Bookmarks