I know this question might be asked somewhere around SOF. But having search SOF, I find no matched solution.
I have a mission to create & maintain/populate an extremely large XML tree (approx 2GB on disk). According to the requirements, I have to:
- Apply lots of transformation logic to the XML tree's nodes
- Create new tree, add transformed nodes to it, then save this new tree to file.
The first thing in my mind when I started to work on it is: I don't have enough memory to hold the file & even if i have enough memory, the performance could be a serious problem if the whole tree is loaded into memory.
With that in mind, I'd used Stream XML fragments technique to read data from original file w/o loading it to memory. But to create new tree, I was stuck. MSDN seems not to have any doc that deal with this problem. Any idea?
Thanks in advance.