That’s the background, which is the GoDocument.PaperColor, or the GoView.BackColor if GoSvgWriter.PaintView is true.
What’s the problem with having that element there?
If you really need to get rid of it, I suppose one could override GoSvgWriter.GenerateObjects.
Thanks for replying.
Are you importing into GoDiagram some SVG that GoSvg exported? That’s quite a bit of work.
Well, one solution is to read in the XML as DOM. Either find that Rect element and remove it from the DOM, or skip over it when interpreting the SVG.
It would be easier to use the GoXml layer directly than the GoSvg support. The Svg support was intended to allow you to export GoDiagrams outside of the Go environment.
Thanks Jake and Walter