Small bug fix in converting ContentType to xml.