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 xml applications?

0 Answers  


What is parsing and how do I do it in xml?

0 Answers  


Write a code for xml attribute and element.

0 Answers  


What is cdata section in xml?

0 Answers  


How do you create an xml file?

0 Answers  






What is excel xml map?

0 Answers  


If xml does not have closing tag will it work ?

0 Answers  


Why should we go for xml editor instead of notepad?

0 Answers  


What does soap stand for?

0 Answers  


How to tell web browsers that your web pages have atom feeds?

0 Answers  


Do you feel that you are a good XSLT programmer?

0 Answers  


what is the relationship between XML and Java technology?

1 Answers  


Categories