Hi,
Well all the provided solutions are correct. But for efficient Conversion and use.
You should use
XDocument. XDocument
is better than
XMLDocument
. It is very efficient, simple and easy to use.
Your code :
webservice.Service1 objService1 = new webservice.Service1();
String s = objService1.HelloWorld();
XmlDocument xd = new XmlDocument();
xd.LoadXML(s);
Solution:
XDocument xd = XDocument.Parse(s);
Thanks :)
Hope this will help you :)