2011/8/28 Benito van der Zander <[email protected]>: > 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 * =============================================== -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
