Jump to content

DocumentElement Error


andreathedove

Recommended Posts

Hello All,I have problem witk this Feed Rss powered by Google News:http://www.google.it/news?ned=it&topic=b&output=rssI write to read the node this code:<!--#include file="config.asp" --><%dim objXMLset objXML = server.CreateObject("Microsoft.FreeThreadedXMLDOM")objXML.Load(xmlpath)set xmlcontents = objXML.DocumentElement.selectSingleNode("channel")%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><div align="center"> <table width="75%" border="1" bordercolor="#E3E7E8"> <tr> <td colspan="4"> </td> </tr><%for i = 0 to xmlcontents.ChildNodes.length - 1 set xmlcontent = xmlcontents.ChildNodes.item(i)%> <tr> <td><%= xmlcontent.ChildNodes.item(0).text%></td> <td><%= xmlcontent.ChildNodes.item(1).text%></td> <td><%= xmlcontent.ChildNodes.item(2).text%></td> </tr> <% next %></table> </div></body></html>I set documentelement in Channel but I have this error:http://www.allinonenet.it/inc_home/google_...oogle_news2.aspWhy ? :):)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...