开发者

Can't use an XDocument in Silverlight?

开发者 https://www.devze.com 2023-01-11 14:39 出处:网络
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 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 i开发者_开发知识库t seems I can't type in the using namespace in my code.

Any other ideas?


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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消