I need some php library to parse html content to DOM tree Like this:
html
|--head
| |---title--title_content
| |---meta--meta_content
|--body
| |---div
| | |--div--div_content
.. etc
and also repare or clean the invalid html.
ITS not only for HTML BUT event for any XML style mark-up language. basically a parent-child style.