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


Please Help Members By Posting Answers For Below Questions

In What case you are not going to use XML?

576


How do I create an rss feed for my podcast?

573


How use xml data in excel?

453


Which is better xml or html?

445


What is url what is the use of it?

436






What is an xml tag?

469


What is xml and its features?

464


How do I use xml namespaces with dom level 2?

461


Can the content model in an element type declaration contain element types whose names come from other xml namespaces?

495


what are the predefined entities in XML ?

1733


Define xsl?

472


How many types of dtd are there in xml?

468


What is the full form of xml?

519


Explain about xml signature?

490


Explain an overview of xml.

494