I am working working with very large XML files (100s of MBs). The tree is fairly simple
<items>
<item>
<column1>ABC</column1>
<column2>DEF</column2>
</item>
<item>
<column1>GHI</column1>
<column2>KLM</column2>
</item>
</items>
I need to parse this document, and remove some <item>
elements. So far, the best peerformance I achieved is using XmlReader, caching each <item>
in memory and the writing it back using XmlWriter out if it meets the criteria, and simply ignoring it if it doesn't. Is there anyting i can do to make it faster?