Switch to DOM parsing