<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <blockquote type="cite">How can I get exact element from the HTML
      and/or XML content (like with <a moz-do-not-send="true"
        href="http://nokogiri.org/">nokogiri</a>) ? </blockquote>
    I'm working on a few classes to do that.
    (<a class="moz-txt-link-freetext" href="http://benibela.de/sources_en.html#internettools">http://benibela.de/sources_en.html#internettools</a>, although it
    doesn't support css-selectors (yet) )<br>
    The nokogiri example would look like this:<br>
    <br>
    var tree: TTreeParser;<br>
    begin<br>
    tree := TTreeParser.create();<br>
    tree.parseTree(    ... the document ... );<br>
    result := TPseudoXPathParser.evaluateToString('<span class="content"><span
        class="block" style="margin-left: 0px ! important;"><code
          class="string">//h3/a[@class="l"]', tree.getTree());</code></span></span><br>
    ...<br>
    <br>
    <br>
    <br>
    On 28.08.2011 07:44, ik wrote:
    <blockquote
cite="mid:CAOccsKDK7oYGaHFbJrKto2WdVL2hEhyf1Xo7v4m3dK-cbCjy0Q@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div>
        <div>On Sat, Aug 27, 2011 at 23:43, silvioprog <span><<a
              moz-do-not-send="true" href="mailto:silvioprog@gmail.com">silvioprog@gmail.com</a>></span>
          wrote:<br>
          <blockquote>
            It's easy, it can be done in a single line, see:<br>
            <br>
            <a moz-do-not-send="true"
              href="http://code.google.com/p/lazsolutions/wiki/Tip?wl=en">http://code.google.com/p/lazsolutions/wiki/Tip?wl=en</a><br>
          </blockquote>
          <div><br>
            How can I get exact element from the HTML and/or XML content
            (like with <a moz-do-not-send="true"
              href="http://nokogiri.org/">nokogiri</a>) ? <br>
            That can be very helpful imho :)<br>
             </div>
          <blockquote>
            <br>
            Enjoy! ^^<br>
            <br>
            --<br>
            Silvio Clécio<br>
            ===============================================<br>
            Blog - <<a moz-do-not-send="true"
              href="http://silvioprog.com.br">silvioprog.com.br</a>><br>
            Twitter - <<a moz-do-not-send="true"
              href="http://twitter.com/silvioprog">twitter.com/silvioprog</a>><br>
            LazSolutions - <<a moz-do-not-send="true"
              href="http://code.google.com/p/lazsolutions">code.google.com/p/lazsolutions</a>><br>
            LazWebSolutions - <<a moz-do-not-send="true"
              href="http://code.google.com/p/lazwebsolutions">code.google.com/p/lazwebsolutions</a>><br>
            Lazarus-BR - <<a moz-do-not-send="true"
              href="http://groups.google.com.br/group/lazarus-br?hl=pt-BR">groups.google.com.br/group/lazarus-br?hl=pt-BR</a>><br>
            ===============================================<br>
               * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *<br>
            ===============================================<br>
            --<br>
            _______________________________________________<br>
            Lazarus mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
    </blockquote>
  </body>
</html>