It's easy, it can be done in a single line, see:
http://code.google.com/p/lazsolutions/wiki/Tip?wl=en
Enjoy! ^^

Mailing lists / lazarus / 2011-08
6 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
It's easy, it can be done in a single line, see:
http://code.google.com/p/lazsolutions/wiki/Tip?wl=en
Enjoy! ^^
silvioprog wroteIt'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 :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110828/d3e2ed2f/attachment.html>
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('"l"]',
tree.getTree());|
...-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110828/853e4ec1/attachment.html>
How can I get exact element from the HTML and/or XML content (like with nokogiri…
2011/8/28 ik :
You can use LSHTTPGetPart, LSHTTPGetHTMLDocument or LSHTTPGetXMLDocument. See demo in
">lazsolutions>trunk>Demos>LSHTTPSend".
Download the all sources of LazSolutions via SVN.
> > Enjoy! ^^
I'm working on a few classes to do that. (http://benibela.de/sources_en.html#internettools…
2011/8/28 Benito van der Zander :
Nice project. Congratulations! ;)
2011/8/28 ik : You can use LSHTTPGetPart, LSHTTPGetHTMLDocument or LSHTTPGetXMLDocument.…
I think i'll gonna use it on my little project...
thx
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informa??o
2011/8/28 silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110829/db35a51c/attachment.html>