Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problems with SVG content parsing. (Read 843 times)
nullable
Junior Member
**
Offline


I Love MindFusion!

Posts: 86
Joined: Aug 25th, 2022
Problems with SVG content parsing.
Apr 17th, 2023 at 8:44am
Print Post  
Hi Mindfusion!
I got an index out of range exception when trying to parse SvgContent of following SVG file. Could you check if there is a problem?
Code:
Code
Select All
var xmlDocument = new XmlDocument();
xmlDocument.Load(fileStream);
var svgContent = new SvgContent();
svgContent.Parse(xmlDocument, false);
node.Content = svgContent;
 

  

search.svg ( 0 KB | 47 Downloads )
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3171
Joined: Oct 19th, 2005
Re: Problems with SVG content parsing.
Reply #1 - Apr 18th, 2023 at 6:35am
Print Post  
Hi,

Our parser doesn't like the l.27.28 path command. Adding a space before the second dot fixes it.

Regards,
Slavcho
MindFusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3171
Joined: Oct 19th, 2005
Re: Problems with SVG content parsing.
Reply #2 - Apr 20th, 2023 at 9:50am
Print Post  
New build here should parse that syntax -
https://mindfusion.eu/_beta/wpfdiag392.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3171
Joined: Oct 19th, 2005
Re: Problems with SVG content parsing.
Reply #3 - Apr 24th, 2023 at 2:56pm
Print Post  
We've fixed this for a few more path commands here -
https://mindfusion.eu/_beta/wpfdiag392.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint