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 difference between internal and external dtd?
Can an application process documents that use xml namespaces and documents that don’t use xml namespaces?
How to transform an XML into XHTML?
How do I create an rss feed?
Is xml a flat file?
Where is my rss feed?
Does it cost money to host a podcast?
Why we use xml instead of html?
Can I use a relative uri as a namespace name?
What is an xml product feed?
What are xml attributes?
What is xml and its benefits?
Whats does dtd mean?
What is parsing and how do I do it in xml?
If an element or attribute is in the scope of an xml namespace declaration, is its name in that namespace?