How to work with an Xml file without loading the whole document in memory?

411Boss

New Member
How to add a new node, update an existing node and remove an existing node of an xml document without loading the whole document in memory?I'm having an xml document and treating it as the memory of my application so would need to be able to do hundreds of reads and writes quickly without loading the whole document.its structure is like this:\[code\]<spiderMemory> <profileSite profileId="" siteId=""> <links> <link> <originalUrl></originalUrl> <isCrawled></isCrawled> <isBroken></isBroken> <isHtmlPage></isHtmlPage> <firstAppearedLevel></firstAppearedLevel> </link> </links> </profileSite></spiderMemory>\[/code\]How would that be possible with XDocument?Thanks
 
Back
Top