@@ -28,7 +28,7 @@ You can find many examples of how to use the dom parser and any of its parts (wh
2828``` php
2929// Assuming you installed from Composer:
3030require "vendor/autoload.php";
31- use PHPHtmlParser\Dom;
31+ use PHPHtmlParser\Dom\Node ;
3232
3333$dom = new Dom;
3434$dom->loadStr('<div class =" all" ><p >Hey bro, <a href =" google.com" >click here</a ><br /> :)</p ></div >');
@@ -46,7 +46,7 @@ You may also seamlessly load a file into the dom instead of a string, which is m
4646``` php
4747// Assuming you installed from Composer:
4848require "vendor/autoload.php";
49- use PHPHtmlParser\Dom;
49+ use PHPHtmlParser\Dom\Node ;
5050
5151$dom = new Dom;
5252$dom->loadFromFile('tests/data/big.html');
@@ -79,7 +79,7 @@ Loading a url is very similar to the way you would load the html from a file.
7979``` php
8080// Assuming you installed from Composer:
8181require "vendor/autoload.php";
82- use PHPHtmlParser\Dom;
82+ use PHPHtmlParser\Dom\Node ;
8383
8484$dom = new Dom;
8585$dom->loadFromUrl('http://google.com');
@@ -95,7 +95,7 @@ What makes the loadFromUrl method note worthy is the `PHPHtmlParser\CurlInterfac
9595``` php
9696// Assuming you installed from Composer:
9797require "vendor/autoload.php";
98- use PHPHtmlParser\Dom;
98+ use PHPHtmlParser\Dom\Node ;
9999use App\Services\Connector;
100100
101101$dom = new Dom;
@@ -113,7 +113,7 @@ Loading a string directly, with out the checks in `load()` is also easily done.
113113``` php
114114// Assuming you installed from Composer:
115115require "vendor/autoload.php";
116- use PHPHtmlParser\Dom;
116+ use PHPHtmlParser\Dom\Node ;
117117
118118$dom = new Dom;
119119$dom->loadStr('<html >String</html >', []);
@@ -130,7 +130,7 @@ You can also set parsing option that will effect the behavior of the parsing eng
130130``` php
131131// Assuming you installed from Composer:
132132require "vendor/autoload.php";
133- use PHPHtmlParser\Dom;
133+ use PHPHtmlParser\Dom\Node ;
134134
135135$dom = new Dom;
136136$dom->setOptions([
0 commit comments