Hi, I would like to deserialize (not so common) XML to object. Normal XML should looks like:
<library>
<books>
<book name="1"><author></author><details></details></book>
<book name="2"><author></author><details></details></book>
<book name="2"><author></author><details></details></book>
</books>
</library>
As you can see there is 'books' branch inside which I have some 'book' elements. It is ok, easy to deserialize etc. However my XML looks different. Inside 'books' there are elements with random names. Instead of 'book' element there is element with book name itself (as element name). What is more inside these elements there are always the same elements like 'author' and 'details'.
Please have a look at this:
<library>
<books>
<1><author></author><details></details></1>
<2><author></author><details></details></2>
<3><author></author><details></details></3>
</books>
</library>
Any suggestion how to create objects from the second XML?