If there is an xml declaration, it should be a well-formed one