delete
delete

Reputation:

Can't use an XDocument in Silverlight?

I'm creating a Windows Phone 7 application that will consume an exposed webservice. For now, I want to load a dummy xml file and parse information from that.

I'm used to using XDocument for things like this, but it seems I can't type in the using namespace in my code.

Any other ideas?

Upvotes: 3

Views: 2423

Answers (2)

DaveB
DaveB

Reputation: 9530

Take a look at How to Use XDocument class in SilverLight Project (C#)

Upvotes: 1

Klinger
Klinger

Reputation: 4970

The XDocument class is in the System.Xml.Linq namespace, with dll of the same name.

Have you added a reference to the System.Xml.Linq.dll?

Upvotes: 8

Related Questions