1

I need to parse a HTML file without any ID's or classes.

There are many tables with only a few rows.

Now I want to access the elements like in jq

jQuery("<tr>").children("<td>")...

I started with PHP DOMDocument and I can get elements with

$doc->getElementsByTagName(...)

But I cant find a method to access the child elements.

Does somebody have an idea?

Philipp Nies
  • 945
  • 4
  • 20
  • 38

0 Answers0