简体   繁体   中英

XML Update Nodes using Linq

I have a xml file with following entries, I want to update. I have gone through other related questions but not solving my issue.

<Movie>
    <Name>21</Name>
    <Year>2008</Year>
    <Genre>Drama</Genre>
</Movie>

Go look at this question:

Merging an XML file with a list of changes

I've linked to my answer because it contains a complete example - its probably slightly more complex than you need but still a trivially small number of line and combined with the debugger should give you all the elements (if you'll excuse the pun) you need to solve your problem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM