1
Answer

Problem in Getting Xml element value in asp.net

Smart    Lucky

Smart Lucky

12y
1.4k
1
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/>");
                    }
                }
               
            }
Answers (1)