Fastest way to add new node to end of an xml?

前端 未结 10 704
深忆病人
深忆病人 2020-11-29 10:21

I have a large xml file (approx. 10 MB) in following simple structure:


   .......
   .......         


        
10条回答
  •  难免孤独
    2020-11-29 11:13

    I would use XmlDocument or XDocument to Load your file and then manipulate it accordingly.

    I would then look at the possibility of caching this XmlDocument in memory so that you can access the file quickly.

    What do you need the speed for? Do you have a performance bottleneck already or are you expecting one?

提交回复
热议问题