How to load the contents of an xml file into an xmldocument object?



How to load the contents of an xml file into an xmldocument object?..

Answer / Shivaji Pratap Singh

You can use XDocument or XmlDocument to load XML files. Here is an example using XmlDocument:nnXmlDocument doc = new XmlDocument();ndoc.Load("filename.xml");

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

What is Event Bubbling in .NET?

1 Answers   Viscus Infotech,


What is common language specification (cls)?

1 Answers  


Difference between user groups and code groups

1 Answers  


Describe the difference between inline and code behind which is best in a loosely coupled solution?

2 Answers  


How different are interface and abstract class in .Net?

2 Answers  


Why MVC programming model preferred?

1 Answers  


How to debug failed assembly binds?

1 Answers  


What are the fundamental objects in ADO.NET?

1 Answers  


What's singlecall activation mode used for in .net?

1 Answers  


How will you register com+ services?

1 Answers  


What is a serviced component?

1 Answers  


What are the providers available with VS.NET ?

2 Answers   TCS,


Categories