Categories
PHP

PHP DOM and XPATH

After checking out beautifulsoup in Python, I became very curious to know what we have in PHP for accessing the DOM nodes of a html document. After exploring a while, I found out the PHP DOM and XPATH.

Here’s a little example:

masnun.html – The HTML file

Now we use PHP to access the document:

That’s it, pretty simple and easy ! 😀

3 replies on “PHP DOM and XPATH”

Unfortunately in Russia, with visual kulturoybolshie problem.

I am in Web-design newbie, take orders for the development of sites can not yet.

But I often appear to customers who want to make a site.

Where and how to find a decent Web-designer in Russia?

????????, ???????, ???????. ???????????? ???????

Comments are closed.