How can I get exact element from the HTML and/or XML content (like with nokogiri <http://nokogiri.org/>) ?
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());|
...



On 28.08.2011 07:44, ik wrote:
On Sat, Aug 27, 2011 at 23:43, silvioprog <[email protected] <mailto:[email protected]>> wrote:

    It's easy, it can be done in a single line, see:

    http://code.google.com/p/lazsolutions/wiki/Tip?wl=en


How can I get exact element from the HTML and/or XML content (like with nokogiri <http://nokogiri.org/>) ?
That can be very helpful imho :)


    Enjoy! ^^

    --
    Silvio Clécio
    ===============================================
    Blog - <silvioprog.com.br <http://silvioprog.com.br>>
    Twitter - <twitter.com/silvioprog <http://twitter.com/silvioprog>>
    LazSolutions - <code.google.com/p/lazsolutions
    <http://code.google.com/p/lazsolutions>>
    LazWebSolutions - <code.google.com/p/lazwebsolutions
    <http://code.google.com/p/lazwebsolutions>>
    Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR
    <http://groups.google.com.br/group/lazarus-br?hl=pt-BR>>
    ===============================================
       * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
    ===============================================
    --
    _______________________________________________
    Lazarus mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to