Last Updated: 03 Jun 2020 16:31 by ADMIN
Release R2 2020 SP1 (LIB 2020_2_603)
Created on: 27 May 2020 15:29
Category: UI for WinForms
Type: Bug Report
RadSvgImage: when using FromFile method a System.Xml.XmlException is throw:'Cannot resolve external DTD subset

Dear Support,

I want to use the new feature - Support for SVG.

Then I have to load the file with RadSvgImage.FromFile().

I get the following exception:

System.Xml.XmlException: 'External DTD subset cannot be resolved - public ID =' - // W3C // DTD SVG 1.1 // EN ', system ID =' SVG / 1.1 / DTD / svg11.dtd '.'

(Translated from German)

Problem is line 2, where the DTD is given.

Is there a way to tell XmlSerializer to ignore the validation?

1 comment
Posted on: 27 May 2020 15:57

Hello Stoyan,

Due to the internal implementation of the SVG library, the possible workaround I can suggest you is to modify the SVG document before creating RadSvgImage and remove the following row:

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "">


Todor Vyagov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.