I store the XML output to String and Again convert this string to XML .I successfully convert XML output to String, but i got problem again converting string to XML.
sample code:
webservice.Service1 objService1 = new webservice.Service1();
String s = objService1.HelloWorld(); //Convert XML output into String
XmlDocument xd = new XmlDocument();
xd.LoadXML(s);
I use LoadXML() method, but i got error
Data at the root level is invalid. Line 1 position 1.
Its grateful, if any body give right code to convert String To XML in c#. Thank you,
s- there is a good chance that it is not an XML.HelloWorld()method.