Re: [Simple-support] deserializing inheritance in differently shaped XML
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-03-21 03:23:19
|
Hi, Can u provide the stack trace? Also, has the class got a no argument constructor? Niall --- On Tue, 20/3/12, Christian Paul <Chr...@ca...> wrote: From: Christian Paul <Chr...@ca...> Subject: [Simple-support] deserializing inheritance in differently shaped XML To: sim...@li... Received: Tuesday, 20 March, 2012, 10:53 AM 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 -----Inline Attachment Follows----- ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |