Re: [Simple-support] deserializing inheritance in differently shaped XML
Brought to you by:
niallg
|
From: Onno H. <on...@aq...> - 2012-03-20 22:42:05
|
Hi Christian, assuming I understood your problem, I may have a hint for you. You can read my solution here: http://sourceforge.net/mailarchive/message.php?msg_id=28693296 I hope I could help, Onno (auch mal bei der CAS gewesen) Am 20.03.2012 um 18:53 schrieb Christian Paul: > Hello, > > I'm using simple and I want to parse an xml file that looks something like this: > > .. > <pages name="page1"> > <widgets xsi:type="thisModel:Button" name="btn1"/> > </pages> > .. > > "Button" subclasses the abstract "Widget". > > My problem is: how can I make simple understand that? Serialized with Simple itself it would probably be sth. like: <widgets class="thisModel:Button" name="btn1" > . > > But in the presented way, I get the error: "Cannot instantiate class thisModel.Widget for class thisModel.Widget". > > What can I do? I'm really thankful for every hint. > > Christian > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure_______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support |