Jazerix
Jazerix

Reputation: 4801

Parsing string to XDocument

I'm making a WP app, and it loads an xml from a URL.

So I download the content of the URL to a string using WebClient. The string returned is then parsed using XDocument.Parse()

Thing is, when looking into the XDocument, it just tells me "Could not evaluate expression", am I doing anything wrong?

void DownloadInfo(object sender, DownloadStringCompletedEventArgs e)
    {
        XDocument xdoc = XDocument.Parse(e.Result);
    }

Upvotes: 0

Views: 278

Answers (1)

John Saunders
John Saunders

Reputation: 161821

You don't have a problem, you just don't know how to interpret the debugger output.

Some of the properties of the XDocument can't be evaluated. That doesn't mean that you don't have a valid XDocument.

Upvotes: 2

Related Questions