LaVOZs

The World’s Largest Online Community for Developers

';

here is an html sample, it's a big one

<!--- array of that block --->
<div class="main">
     <div class="mainsubdiv1">SomeText</div>
     <div class="mainsubdiv2" id="some_id">
       <div class="subsubdiv1" style="astyle">
             <div class="subsubsubdiv1">

             </div>
             <!---- other divs... --->
       </div>
</div>

I have an array of div,class="main" that contains other subdivs with other subdivs. I would like to extract information on all those subdivs and repeat the action until I reach the last div class=main using goquery. I don't find how to do that efficiently.

Is there anything simple to do to be able to loop through nodes and get the infos ?

Thanks for helping