Resource and Response objects leverage PHP DOM