3

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?

2 Answers2

8

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?

Klinger
  • 4,900
  • 1
  • 30
  • 35
1

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

Community
  • 1
  • 1
DaveB
  • 9,470
  • 4
  • 39
  • 66