Problem in Getting Xml element value in asp.net
Hi i am trying to get value of the ement with name ,Name is getting but value is not printing can any one help me plz...?
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element)
{
Response.Write("Elemet is======>" + reader.Name+"Values is =====>"+reader.Value+"<br/>"); // I want to value of the elment here
if (reader.HasAttributes)
{
for (int i = 0; i < reader.AttributeCount; i++)
{
Response.Write("Attribute value is=====>" + reader.GetAttribute(i) + "<br/>");
}
}
}