Make parser use TomDoc