Alex
Alex

Reputation: 67698

DOMDocument wrappers?

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

Answers (2)

Jeroen
Jeroen

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

Related Questions