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 are the different xslt elements?

0 Answers  


What is XmlReader class? Explain.

0 Answers  


Define xsl?

0 Answers  


Where can I find my rss feed on wordpress?

0 Answers  


Are xml tags case sensitive?

0 Answers  


Can you use the xslt to convert html into vxml? : xslt

0 Answers  


What is ?Well Formed XML? and ?Valid XML?

1 Answers  


Where is my rss feed on wordpress?

0 Answers  


Why is web xml needed?

0 Answers  


Do xml namespace declarations apply to dtds?

0 Answers  


Is there an xml version of html?

0 Answers  


How to use XML DOM model on client side using JavaScript.

0 Answers  


Categories