Re: [Lazarus] How to use GetElementById?

2011-01-31 Thread silvioprog
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. :

Re: [Lazarus] How to use GetElementById?

2011-01-30 Thread Benito van der Zander
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 parse

Re: [Lazarus] How to use GetElementById?

2011-01-30 Thread silvioprog
Sorry... but nobody? :( 2011/1/26 silvioprog > Hi guys, > > I use the GetElementById in PHP with sucess, but in FPC I not know how use. > > In PHP I use (with sucess): > > ... > $dom = new DOMDocument(); > @$dom->loadHTML($data); > $return = @$dom->getElementById('currency_converter_result')

Re: [Lazarus] How to use GetElementById?

2011-01-27 Thread Sergei Gorelkin
silvioprog writes: Hi guys, I use the GetElementById in PHP with sucess, but in FPC I not know how use. (skipped) GetElementById works by itself, but it requires a DTD to be present *and* it is able to resolve DTDs only at the filesystem level. Since your sample document contains DTD pointin