<item><title>this is title</title><guid isPermaLink="true">http://www.i.com/video/nokia-lumia-920-deki-pureview_2879.html</guid><link>http://www.i.com/video/nokia-lumia-920-deki-pureview_2879.html</link>
<description><![CDATA[this is the info.]]></description>
<pubDate>Wed, 5 Sep 2012 22:10:00 UT</pubDate>
<media:content type="image/jpg" expression="sample" fileSize="2956" medium="image" url="http://media.chip.com.tr/images/content/video/88/201209060102428081-0.jpg"/>
<enclosure type="image/jpg" url="http://media.chip.com.tr/images/content/video/88/201209060102428081-0.jpg" length="2956"/></item>
Run Code Online (Sandbox Code Playgroud)
我想在<"description">中阅读CDATA
我写了这个
var x = e.Result;// e is downlaoded xml file
var videos = XElement.Parse(e.Result);
var fList = (from haber in videos.Descendants("channel").Elements("item")
select new Video
{
title = haber.Element("title").Value,
link = haber.Element("link").Value,
//description = ???????
}).ToList();
Run Code Online (Sandbox Code Playgroud)
我应该写什么描述?//编辑答案:同样的方式
但如果描述像这样?
<![CDATA[<p>Zombiler ad?na ne umduk ne bulduk!</p> <p> </p><p><img style="margin: 5px 0px 5px 5px; border: 1px solid #333333; float: …
Run Code Online (Sandbox Code Playgroud) 我有一个这样的Json
{ "nodes" : [{"id" : "36018","title" : "Fotar?","date" : "20.09.2012 00:45", "short_description" : "Dünrina, rr!","bigimage_width" : "468","bigimage" : "https://qew","croppedimage" : "https://qwe.jpg"},{"id" : "36009","title" : "ey","date" : "20.09.2012 00:03", "short_description" : "?nt?z!","bigimage_width" : "220","bigimage" : "https://312.jpg","croppedimage" : "https://41172.jpg"},{"id" : "35915","title" : "ai!","date" : "20.09.2012 00:02", "short_description" : "Ssdi...","bigimage_width" : "220","bigimage" : "https://qwe.qwe" : "https://asd.asd"},...
Run Code Online (Sandbox Code Playgroud)
所以我这样做了
JObject j = JObject.Parse(x); // x is downloaded JSon code
JArray sonuc = (JArray)j["nodes"];
Run Code Online (Sandbox Code Playgroud)
但现在我有
[{"id":"1","name":"news"},{"id":"2","name":"hardware"},{"id":"3","name":"software"},{"id":"4","name":"\internet"},{"id":"6","name":"tv!"},{"id":"7","name":"texts"},{"id":"8","name":"update"},...
Run Code Online (Sandbox Code Playgroud)
那么我应该如何处理我的代码以使其工作?
JObject j = JObject.Parse(x); // gives JsonReaderException exception …
Run Code Online (Sandbox Code Playgroud) 我有这个屏幕:
当我点击链接时,它就像:
那么当我点击webBrowser中的链接时,如何让它打开一个新的Internet Explorer浏览器?
我正在寻找这个2天.我无法弄清楚如何显示图像(在我的res文件夹中)如何在单击按钮后显示图像?