<p class="wp-block-paragraph">I decided to release this code snip, just a PHP class, for extracting data from an HTML page.</p> <p class="wp-block-paragraph">The code is in <a href="https://github.com/danielecr/verygrabber">https://github.com/danielecr/verygrabber</a> and the packagist can be installed by</p> <blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"> <p class="wp-block-paragraph">composer install smartango/verygrabber</p> </blockquote> <p class="wp-block-paragraph">rif. <a href="https://packagist.org/packages/smartango/verygrabber">https://packagist.org/packages/smartango/verygrabber</a></p> <p class="wp-block-paragraph">This is an old snippet to define a […]
Tag: dom
Parsing XML: Sax or DOM
I tried both SAX and DOM, for parsing an XML file, difference in time performance is huge, from 4 hours (DOM) to 9 seconds (SAX). Different APIs Different interface bring to different complexity of code, but all depends from the point of view DOM You do not know what is Document Object Model if you […]