Replace DOMParser with calls to pool or helper class.