Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Conflict versions (Read 4206 times)
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Conflict versions
Aug 28th, 2012 at 9:03am
Print Post  
Hello. I have the problem while changing version 2.7 to version 2.8.2. In version 2.7 I have saved diagrams into XML format. And when I try to call LoadFromXML method for the ShapeNode in version 2.8.2 I catch the exception @Input string is not in the correct format. But version 2.7 parses this XML without any problems
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Conflict versions
Reply #1 - Aug 28th, 2012 at 9:23am
Print Post  
Could you attach a file that shows the problem?
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Conflict versions
Reply #2 - Aug 28th, 2012 at 9:40am
Print Post  
Unfortunately I haven't the file. But I could attach the string, which contains the serialized diagram and attach the classes inherited from the ShapeNode and DiagramLink with overrided methods LoadFromXML. After LoadFromString it gets to LoadFromXML for the TPDENode class which inherited from the ShapeNode. The first which it is doing - calls base.LoadFromXML(xmlElement, context)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Conflict versions
Reply #3 - Aug 28th, 2012 at 10:25am
Print Post  
Please attach the string in a text file. If you are using custom classes, I suppose there might be problems if the name of your property conflicts with the name of a standard property added since the 2.7 release. E.g. there was an Id property added in v2.8; does your custom class define Id property too?
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Conflict versions
Reply #4 - Aug 28th, 2012 at 11:40am
Print Post  
Yes, I have an Id property.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Conflict versions
Reply #5 - Aug 28th, 2012 at 11:53am
Print Post  
You could add a DeserializeTag handler and set e.Handled = true when e.PropertyName == "Id". That should prevent the control from trying to parse the XML elements you previously saved for your id-s.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Conflict versions
Reply #6 - Aug 28th, 2012 at 12:19pm
Print Post  
Thank you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint