Anything wrong in this code?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span class="x_GingerNoCheckStart Hi Experts,
I need a help in a little confusion where I got stuck. Im trying to read meta tag contents from the HttpWebResponse.
Here is the sample response stream.
<pre class="prettyprint" style=" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
<html xmlns="http://www.w3.org/1999/xhtml <!-- InstanceBegin template="/Templates/first level (home page).dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>YRC Worldwide: News, Investors, Media</title>
<meta name="keywords" content="yrc worldwide inc, yrc inc, yrcw, yrc, freight, shipping, yrc worldwide" />[/code]
There is meta tag available in that response stream and below <span class="x_x_GRcorrect" id="x_x_GRmark_ec9399639351d6706669d81be55ecbc80448bfd9_i:0
im trying to read the content:
<pre class="prettyprint" style=" Match KeywordMatch = Regex.Match(strIn, "<meta name="keywords" content="([^<]*) ", RegexOptions.IgnoreCase | RegexOptions.Multiline) ;
metaKeywords = KeywordMatch.Groups[1].Value;[/code]
But it it <span class="x_x_GRcorrect" id="x_x_GRmark_863f3a20316b7b0b9a1436d09a4e488c3a089cfb_returning:0
returning null data.
Any help?


<span class="x_GingerNoCheckEnd <br/>

View the full article
 
Back
Top