Re: [Simple-support] Deserializing polymorphic types.
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2015-02-16 22:13:05
|
Ya, you can use a Strategy or a Visitor to do this. Another alternative is to open a text editor and do a search an replace on the XML. -------------------------------------------- On Tue, 17/2/15, adev dev <and...@gm...> wrote: Subject: [Simple-support] Deserializing polymorphic types. To: sim...@li... Received: Tuesday, 17 February, 2015, 2:03 AM I am using SimpleXML to serialize classes. I am serializing polymorphic types as well. Due to this I came across a problem. I would like to do code refactoring and move some classes between packages. After I did it old XML files created before refactoring cannot be read. Simple framwork is throwing exception that class is not found. In XML full path to class is stored so after I changed class package class cannot not be found. What is the solution to this problem? Is there any way to apply kind of mapping between old and new class location??? Thank you, BR, M -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |