assertion to ensure the xml is valid