How to read large xml file without loading it in memory and using XElement

后端 未结 3 1528

I want to read a large xml file (100+M). Due to its size, I do not want to load it in memory using XElement. I am using linq-xml queries to parse and read it.

What\

3条回答
  •  借酒劲吻你
    2020-11-27 22:32

    Just keep in mind that you will have to read the file sequentially and referring to siblings or descendants is going to be slow at best and impossible at worst. Otherwise @MartinHonnn has the key.

提交回复
热议问题