How do you access elements in XML document?

Answers were Sorted based on User's Feedback



How do you access elements in XML document?..

Answer / technical_sathish

Creating Object for XML we can Access the Elements...
Microsoft Provider....

Is This Answer Correct ?    6 Yes 0 No

How do you access elements in XML document?..

Answer / 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

How do you access elements in XML document?..

Answer / kaushalbhardwaj

elements in an xml file can be accsssed by the use xpath
xpath is basicaly the path of the element starting from the
root(i.e. the top elemnt). eg /root/chield/chieldofchield/

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More XML XSLT RSS Interview Questions

What is xml xsl?

0 Answers  


What is xsd file?

0 Answers  


How do I subscribe to rss feeds in chrome?

0 Answers  


What are the nodes using which the template gets instantiated?

0 Answers  


Is xml meant to be a replacement of html?

0 Answers  






Is html xml subset?

0 Answers  


Is xml a text file?

0 Answers  


Do you know what are the roles of XSLT?

0 Answers  


How do I create an xml file from excel?

0 Answers  


What is xslt used for?

0 Answers  


Which xsl type is used for navigation in xml documents?

0 Answers  


What is the difference between simple element and complex element?

0 Answers  


Categories