[Simple-support] deserializing inheritance in differently shaped XML
Brought to you by:
niallg
|
From: Christian P. <Chr...@ca...> - 2012-03-20 18:06:24
|
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
|