How to deserialize an XML where element names are list-numerated?

plusLETJO

New Member
Good news everyone!I have encountered a new problem with some tricky xml.\[code\]<?xml version="1.0" encoding="UTF-8"?><response><osmp_txn_id>100500</osmp_txn_id><result>0</result><fields><field1 name="name">Ko Chu Bey</field1><field2 name="contract">777-1</field2>...<fieldN name="account">65000</fieldN></fields><comment>Result for round 1 of fight vs Pe Re Svet: 1:1</comment></response>\[/code\]My problem is that built-in utility that generates xsd's ans cs's makes a different class for each \[code\]fieldX\[/code\]. And because there could be \[code\]N\[/code\] amount of them it becomes a pain in a very intimate place.Is there a way to deserialize object from this XML into a class with array of \[code\]field\[/code\] objects?
 
Top