Removed xml preable and doctype before rendering