Changed $newXML to public to not break PHPUnit