Article View: borland.public.cppbuilder.internet.web
Article #151Re: Extracting all the HTMLElements from IHTMLDocument2 ?
From: Mischa Simmonds
Date: Wed, 15 Aug 2007 04:00
Date: Wed, 15 Aug 2007 04:00
26 lines
1763 bytes
1763 bytes
Worked it out. Used IHTMLSelectElement as well as IHTMLInputElement
eg:
element->get_tagName(&wsTagName);
if(wsTagName==(const WideString)"SELECT")
{
DelphiInterface<IHTMLSelectElement> select;
if(SUCCEEDED(element->QueryInterface(IID_IHTMLSelectElement,
(LPVOID*)&select)))
{
WideString wsName;
WideString wsValue;
AnsiString asName;
AnsiString asValue;
select->get_name(&wsName);
select->get_value(&wsValue);
asName=wsName;
asValue=wsValue;
sl->Add(asName+"="+asValue);
}
}
else
if(wsTagName==(const WideString)"INPUT")
{
etc....
Technical Details
Message-ID:
<46c27a59$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46c061ea$1@newsgroups.borland.com> <46c09536@newsgroups.borland.com> <46c24d7e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,26c174002c4041d7 X-Google-Attributes: gidfeeec,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 15 Aug 2007 14:00:27 +1000 From: Mischa Simmonds <mischa1.BanSpam@informationdesign.BanSpam.com.au> User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: Extracting all the HTMLElements from IHTMLDocument2 ? References: <46c061ea$1@newsgroups.borland.com> <46c09536@newsgroups.borland.com> <46c24d7e$1@newsgroups.borland.com> In-Reply-To: <46c24d7e$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 121.210.92.176 Message-ID: <46c27a59$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1187150425 121.210.92.176 (14 Aug 2007 21:00:25 -0700) Lines: 26 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail