Re: [Simple-support] deserializing inheritance in differently shaped XML
Brought to you by:
niallg
|
From: Christian P. <Chr...@ca...> - 2012-03-21 10:38:12
|
Hi,
problem is solved thanks to Onno's post. Turned out to be perfectly applicable. Thanks!
Christian
Von: Niall Gallagher [mailto:gal...@ya...]
Gesendet: Mittwoch, 21. März 2012 04:23
An: sim...@li...; Christian Paul
Betreff: Re: [Simple-support] deserializing inheritance in differently shaped XML
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
|