xPath Groupings how?
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-03-12T04:03:44Z
Indexed on
2010/03/12
4:07 UTC
Read the original article
Hit count: 285
OK So, I'm learning/using xpath for a basic application thats effectively ripping data off another website.
I need to gain the knowledge of each persons Countryy/Suburb/area.
In some instances you can get Australia/Victoria/melborne for instance.
Others may just be Australia/Melbourne.
Or even just Melbourne OR just AUSTRALIA.
who knows.
So I'm current able to view the below code and rip all of the information with the string xpath search:@" //table/tr/td/tabke/tr/td/font/a, this returns every entry, but what I really want is to group each lot separately.
I hope someone out there on planet earth knows what I just tried to explain... and can help...
Good day!
<font face="arial" size="2">
<strong>Location:</strong>
<a href="http://maps.google.com/maps?q=Australia" target="mapblast" style="text-decoration:none">Australia</a>,
<a href='http://maps.google.com/maps?q=Australia%20Victoria'target="mapblast" style='text-decoration:none'>Victoria</a>,
<a href='http://maps.google.com/maps?q=Australia%20Melbourne%20Victoria'target="mapblast" style='text-decoration:none'>Melbourne</a>
</font>
</td>
</tr>
© Stack Overflow or respective owner