add xml declaration and namespace declarations so we can actually validate