I am unable to retrieve images from the RSS feed, that is, in the description
I am using the following code to get information. L
var rssFeed = doc.Elements ("RSS") Elements ("Channel"). Value, link = el.Element ("title") value, link = el.Element ("link", "link", "element" ("item"), gradual date time (L. element (value, description = el.Element ("description" PubData = Date Time (L. Element ("Pubadet"). Value);} When the description is being displayed, both the text and the image are being displayed So I want to separate the text and the image in the description. Could you please tell me how to proceed
used RSS feeds:
}
protected string regex (st Ring source) {var reg1 = new reggae ("src = (?: \" | \ ')? (? & Lt; imgSrc & gt; [^ & gt;] * [^ /]. (? Jpg | BMP | GIF | PNG)) (?: \ "| \ ')?"); Var match1 = reg1. Match (source); If (match 1.Success) {Uri UrlImage = New Uri (1 match. Group ["imgSrc"]. Man, Uricand.Assolute); Return UrlImage.ToString (); } And {return tap; } }
No comments:
Post a Comment