[mdoc] hack to write xml error