Text/xml bug fix