How do you access elements in XML document?
Answer Posted / aravazhi
This way u can access...
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(Server.MapPath("Employee.xml"));
XmlNodeList xmlnodes = xmldoc.SelectNodes
("Employee/EmpName");
DataGrid1.DataSource = xmlnodes;
DataGrid1.DataBind ();
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is the use of xml data binding?
What is xsl used for?
What are the condtions that apply in case of xsl:stylesheet element?
If xml is just a subset of sgml, can I use xml files directly with existing sgml tools?
What is wsdl and how it works?
What are the steps in the instantiation of a template?
Define XPathNavigator class?
what are the special characters in xml ?
What can I do with an xml file?
Can we use xml as database?
What is the difference between csv and xml?
What is xml used for?
describe the role of xpath?
What is the difference between xml and http?
What is the difference between rss feeds and atom feeds?