I have the following XDocument:
<root>
<object>
<objectname>Schedule</objectname>
<mode>Edit</mode>
<row>
<idObject>1</idObject>
<BeginDate>2018-08-07</BeginDate>
<EndDate>2018-08-07</EndDate>
<TotalSum>300.17</TotalSum>
<ScheduleOperation></ScheduleOperation>
</row>
</object>
</root>
And the following xml which I got via SelectSingleNode method of XmlDocument object:
<ScheduleOperation>
<row>
<Sum>1000.00</Sum>
<Date>2017-09-25T00:00:00</Date>
</row>
</ScheduleOperation>
How can I insert/replace this xml into ScheduleOperation node of XDocument to get the result as follows:
<root>
<object>
<objectname>Schedule</objectname>
<mode>Edit</mode>
<row>
<idObject>1</idObject>
<BeginDate>2018-08-07</BeginDate>
<EndDate>2018-08-07</EndDate>
<TotalSum>300.17</TotalSum>
<ScheduleOperation>
<row>
<Sum>1000.00</Sum>
<Date>2017-09-25T00:00:00</Date>
</row>
</ScheduleOperation>
</row>
</object>
</root>