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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.