<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
I'm trying to do some web page scraping using IHTMLDocument2, which is
working fairly well and I can grab the second paragraph on a web page
by doing something like:<br>
<br>
<tt>p := iDoc.all.tags('P');<br>
if p.Length >= 2 then<br>
result := p.Item(1).InnerText;<br>
</tt><br>
Where iDoc is an isnstance of IHTMLDocument2.<br>
<br>
However say there there is an HTML element like<br>
<br>
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span" style="font-family: monospace;"><span
class="webkit-html-tag"><div <span
class="webkit-html-attribute-name">class</span>="<span
class="webkit-html-attribute-value">propertyInfo</span>"></span>Price:
<span class="webkit-html-tag"><span></span>Negotiation<span
class="webkit-html-tag"></span></span><span
class="webkit-html-tag"></div><br>
<br>
</span></span></span>How would I be able to find the divs where
class="propertyInfo"? (if anyone has much experience with
IHTMLDocument2)
<pre class="moz-signature" cols="72">--
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
<a class="moz-txt-link-freetext" href="http://www.salespartner.co.nz">http://www.salespartner.co.nz</a>
PO Box 13085
Johnsonville
Wellington </pre>
</body>
</html>