C# десериализовать XML с тем же именем узла

Я десериализирую сложный файл XML с C#, но у меня есть проблема с этим разделом:

<?xml version="1.0" encoding="UTF-8" ?>
<applications>
    <CustomInformation name="DiscretionaryIncome">3036.50</CustomInformation>
    <CustomInformation name="CurrentLenderAccountNumber"/>
    <CustomInformation name="CurrentLenderRemainingPayments">0.00</CustomInformation>
    <CustomInformation name="CurrentLenderMonthlyPayment">0.00</CustomInformation>
    <CustomInformation name="CurrentLenderPayoff">0.00</CustomInformation>
    <CustomInformation name="AmountRequested">0.00</CustomInformation>
    <CustomInformation name="CurrentLenderInterestRate">0.00</CustomInformation>
    <CustomInformation name="CurrentLenderPhone"/>
    <CustomInformation name="CurrentLenderName"/>
    <CustomInformation name="LoanNumber"/>
    <CustomInformation name="DealerRegion">RateGenius</CustomInformation>
    <CustomInformation name="PrepaidFinanceCharge">0.00</CustomInformation>
    <CustomInformation name="Principal">0.00</CustomInformation>
</applications>

Мне нужно получить Атрибут и значение для Объекта, но так как это не массив, я не могу это сделать.

Я могу взять только атрибут и значение для первого узла, но для следующих узлов я не могу десериализовать объект.

заранее спасибо

0 ответов

Другие вопросы по тегам