Hi,
I have an XML File shown below<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:g="http://base.google.com/ns/1.0">
<Title>Products</Title>
<link rel="self" href="http://localhost:49200/" />
<updated>30-08-2010T04:17:45Z</updated>
<author>
<id>tag:localhost,30-8-2010:/support/products</id>
<entry>
<id>13137</id>
<title>example</title>
</entry>
</author>
</feed>
I am trying to read the id tag in the entry tags but i get object reference not set to ............. error
the code to read it isDim prddoc As New XmlDocument
prddoc.Load(Server.MapPath("prd.xml"))
Dim xmlList As XmlNodeList = prddoc.GetElementsByTagName("entry")
Dim rootNode As XmlElement
rootNode = prddoc.DocumentElement
For ic As Integer = 0 To xmlList.Count - 1
response.write(prddoc.SelectNodes("//entry/id").Item(0).InnerText
Nextthe error is on line response.write(prddoc.SelectNodes("//entry/id").Item(0).InnerTextplz help
View Complete Post