Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

iphone - How to parse an <img> that is deep within a div using Element Parser? -


i'm using parser called element parser , i'm trying parse img tag 4th img tag down under div id "group-e". can retrieve 2nd img not after 2nd img. img i'm wanting parse is:

<img src="http://example.com/i_need_this_image_here.jpg" />.  

how can done? far i've used following code 1st img tag:

element* needimg = [document selectelement: @"div.edgetop div#group-e img"]; 

html code trying parse

<div class="edgetop"> <div id="group-e">     <img src="http://example.com/image.jpg" id="image" />        <img src="http://example.com/image2.png" border="5" />      <h4>group - section e</h4>      <div class="efs" style="width:28px;">group:</div>e<br />     <div class="efs" style="width:28px;">link:</div><a href="group/e">group e</a><br />     <div class="efs" style="width:28px;">date:</div><strong>febuary 15, 2001</strong> <strong><a href="http://example.com/date">date</a></strong><br />     <br />      <img src="http://example.com/image3.gif" class="image" style="padding: 0 4px 7px 0;" />group;.  <b>group e</b><br /><br />group e other:      <img src="http://example.com/i_need_this_image_here.jpg" />  other:<br /><a href="http://www.example.com/other" target="_blank" class="url">group site</a>     <div class="efs">         <div style="padding:18px 0 1px 8px;">link pics:</div>         <img src="http://example.com/linkpic.gif" class="imagelink"/> </div> </div> <div class="efsl"></div> 

thanks help.

figured out after hours of trial , error. have use "+" selector next element.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -