Reputation: 67698
Are there any HTML parsers written in PHP that use DOMDocument for parsing?
I'm basically looking for a wrapper class that provides nicer and more natural API than DOMDocument, which is problematic to work with.
Upvotes: 1
Views: 895
Reputation: 13257
There is SmartDOMDocument, its fixes a few things like encoding and outputting as string.
I don't know of any other wrappers, but you can use an alternative to DOMDocument:
Also, do you realize DOMXPath exists? It makes it way easier to retrieve values.
Upvotes: 2
Reputation: 177
http://www.phpbuilder.com/columns/PHP_HTML_DOM_parser/PHPHTMLDOMParser.cc_09-07-2011.php3 is another possibility.
Upvotes: 1