[Lazarus] How to use GetElementById?
silvioprog
silvioprog at gmail.com
Mon Jan 31 16:44:10 CET 2011
Hi Benito,
Good parser. ;)
Instead of DOM, I could use GetPart, but I need something native with DOM.
:/
Unfortunately I had to use a 'generic' option (...Item[NUMBER]...):
http://code.google.com/p/lazsolutions/source/browse/trunk/Demos/LSHTTPSend/MainFrm.pas#297
Anyway, thanks for the help. :)
2011/1/30 Benito van der Zander <benito at benibela.de>
> Hi,
> i believe the DOM access methods are the most annoying thing ever, you
> can't just define
> a interface for all languages and expect it to be nice.
>
> Doesn't the LCL contains an XPath-parser?
> Then you could just use:
> html//div[@id="currency_converter_result"]/text()
>
> If not, you can use my parser from
> http://benibela.de/sources_en.html#internettools
>
> Benito
>
--
*Silvio Clécio*
*Blog.* blog.silvioprog.com.br
*Twitter.* twitter.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110131/bea16242/attachment-0003.html>
More information about the Lazarus
mailing list