From 1c45425f12f38012b975c36f4d17bd1cec3c0aba Mon Sep 17 00:00:00 2001 From: xuri Date: Wed, 17 Oct 2018 00:28:31 +0800 Subject: resolve #276, add OfficeOpenXML-XMLSchema-Strict mode support --- chart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chart.go') diff --git a/chart.go b/chart.go index 5353a32..edfcab7 100644 --- a/chart.go +++ b/chart.go @@ -1097,7 +1097,7 @@ func (f *File) drawingParser(drawingXML string, content *xlsxWsDr) int { _, ok := f.XLSX[drawingXML] if ok { // Append Model decodeWsDr := decodeWsDr{} - _ = xml.Unmarshal([]byte(f.readXML(drawingXML)), &decodeWsDr) + _ = xml.Unmarshal(namespaceStrictToTransitional(f.readXML(drawingXML)), &decodeWsDr) content.R = decodeWsDr.R cNvPrID = len(decodeWsDr.OneCellAnchor) + len(decodeWsDr.TwoCellAnchor) + 1 for _, v := range decodeWsDr.OneCellAnchor { -- cgit v1.2.1