diff --git a/src/sql/workbench/contrib/query/browser/gridPanel.ts b/src/sql/workbench/contrib/query/browser/gridPanel.ts index 352834f9c142..9ffdea6a7d40 100644 --- a/src/sql/workbench/contrib/query/browser/gridPanel.ts +++ b/src/sql/workbench/contrib/query/browser/gridPanel.ts @@ -1173,7 +1173,7 @@ function isJsonCell(value: ICellValue): boolean { function isXmlCell(value: ICellValue): boolean { let isXML = false; - if (value && !value.isNull) { + if (value && !value.isNull && value.displayValue.trim() !== '') { parseXMLString(value.displayValue, (err, _) => { isXML = err === null; });