Link to home
Start Free TrialLog in
Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America

asked on

asp.net c# xml

Below within if statement. How can I just read metaKyword?

 using (XmlTextReader reader = new XmlTextReader(Server.MapPath("Content/Website.xml")))
            {
                while (reader.Read())
                {
                    if (reader.NodeType == XmlNodeType.Text)
                    {
                       
                            Response.Write(reader.Value);
                            Response.Write("<br>");
                       
                    }
                }
            }



<?xml version="1.0" encoding="utf-8"?>
<Website>  
  <metaKeywords>Keywords In Details</metaKeywords>
  <metaDescription>Decription In Details</metaDescription>
</Website>
ASKER CERTIFIED SOLUTION
Avatar of Ronak Patel
Ronak Patel
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial