SAX vs XmlTextReader - SAX in C#

后端 未结 4 593
醉梦人生
醉梦人生 2020-12-15 09:19

I am attempting to read a large XML document and I wanted to do it in chunks vs XmlDocument\'s way of reading the entire file into memory. I know I can use

4条回答
  •  不知归路
    2020-12-15 09:41

    I believe there are no benefits using SAX at least due two reasons:

    1. SAX is a "push" model while XmlReader is a pull parser that has a number of benefits.
    2. Being dependent on a 3rd-party library rather than using a standard .NET API.

提交回复
热议问题