I was wondering how I could , when I get the xml write it in a string ?
Because when I do this :
{
XDocument xdoc = XDocument.Load("MYURL");
string textresult = xdoc.Root.ToString();
Label_RequestResult.Text = textresult;
}
my Label_RequestResult.text will be equal to the value of the node of the XML.
I would like to actually return the whole xml structure .
Is this posible ?
Thanks for helping.
In my case
string textresult = xdoc.ToString();did the job.I got the whole structure, even with spaces and line breaks.