In C#, is there a way to add an XML node to a file on disk WITHOUT loading it first?

前端 未结 8 1979
后悔当初
后悔当初 2020-12-20 14:14

I have a very basic XML structure/file on disk which is something like:


    kdkdkdk         


        
8条回答
  •  无人及你
    2020-12-20 14:46

    If by not loading XML, you mean not building a DOM tree, VTD-XML is the only API that allows you to cut paste split or modify incrementally. Furthermore, because VTD-XML is memory efficent, you won't have to worry about the size of XML document. A similar post in Java is at How to update large XML file. Notice that vtd-xml is available in Java, C# , C and C++.

提交回复
热议问题