[Lazarus] [TIP] LazSolutions - How to get HTML content?

silvioprog silvioprog at gmail.com
Sun Aug 28 17:43:41 CEST 2011


2011/8/28 Benito van der Zander <benito at benibela.de>:
> How can I get exact element from the HTML and/or XML content (like with
> nokogiri) ?
>
> I'm working on a few classes to do that.
> (http://benibela.de/sources_en.html#internettools, although it doesn't
> support css-selectors (yet) )
> The nokogiri example would look like this:
>
> var tree: TTreeParser;
> begin
> tree := TTreeParser.create();
> tree.parseTree(    ... the document ... );
> result := TPseudoXPathParser.evaluateToString('//h3/a[@class="l"]',
> tree.getTree());
> ...

Nice project. Congratulations! ;)

-- 
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
LazWebSolutions - <code.google.com/p/lazwebsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================




More information about the Lazarus mailing list