Here is the thing... I am generating the following XML.
<Sites count="13" pCount="1">
<Site>
<Title>demoPortal</Title>
<Url>http://localhost:8000</Url>
<ID>7f673e14-e991-49e8-a639-bd801debaad0</ID>
</Site>
<Site>
<Title>Ct131</Title>
<Url>http://localhost:8000/personal/ct131</Url>
<ID>d071b723-3222-49ae-a765-0744b397b5b5</ID>
</Site>
</Sites>
I have no problems looping through the nodes and writing it. Code below that works...
objNodeList is Sites...
For
Each objNode In objNodeList
For Each objNodeChild In objNode
Response.Write(objNodeChild.InnerText)
Next
Next
When I try to write a specific node, lets say title it gives me "Object reference not set to an instance of an object". Below is the code I am using to replace the above item.
Response.Write(objNodeChild("Title").InnerText)
Is there anyting wrong? Please advise...
Thanks,
Shrini
Edited by vshriniwasan